up previous next
ZeroMat

matrix filled with 0

Syntax
ZeroMat(R: RING, NumRows: INT, NumCols: INT): MAT

Description
This function returns the NumRows x NumCols zero matrix with entries in R .

Example
/**/  Use R ::= QQ[x,y,z];
/**/  ZeroMat(QQ, 1, 3); --> same as NewMatFilled(1,3, 0)
matrix(QQ,
 [[0, 0, 0]])
/**/  ZeroMat(R, 1, 3); --> same as NewMatFilled(1,3, zero(R))
matrix( /*RingDistrMPolyClean(QQ, 3)*/
 [[0, 0, 0]])

See Also