up previous next
NewMatFilled

matrix filled with value

Syntax
NewMatFilled(M: INT, N: INT, Val: INT|RAT|RINGELEM): MAT

Description
This function returns an MxN matrix, filled with Val . If Val is an integer or rational, the ring of the matrix is QQ .

Example
/**/  Use S ::= QQ[x,y,z];
/**/  NewMatFilled(1,3,x);
matrix( /*RingDistrMPolyClean(QQ, 3)*/
 [[x, x, x]])

/**/  NewMatFilled(1,3, 0);
matrix(QQ,
 [[0, 0, 0]])
/**/  ZeroMat(QQ, 1, 3); --> same as NewMatFilled(1,3, 0)
matrix(QQ,
 [[0, 0, 0]])

See Also