SetRow -- set a list as a row into a matrix |
Syntax |
SetRow(ref M: MAT, i: INT, L: LIST) |
Description |
Example |
/**/ M := IdentityMat(QQ, 5); /**/ SetRow(ref M, 1, [2,3,4,5,6]); /**/ M; matrix(QQ, [[2, 3, 4, 5, 6], [0, 1, 0, 0, 0], [0, 0, 1, 0, 0], [0, 0, 0, 1, 0], [0, 0, 0, 0, 1]]) |
See Also |