Go to the first, previous, next, last section, table of contents.


rowx, rowm, rowa, colx, colm, cola

rowx(matrix,i,j)
:: Exchanges the i-th and j-th rows.
rowm(matrix,i,c)
:: Multiplies the i-th row by c.
rowa(matrix,i,c)
:: Appends c times the j-th row to the j-th row.
colx(matrix,i,j)
:: Exchanges the i-th and j-th columns.
colm(matrix,i,c)
:: Multiplies the i-th column by c.
cola(matrix,i,c)
:: Appends c times the j-th column to the j-th column.
return
matrix
i, j
integers
c
coefficient
[0] A=newmat(3,3,[[1,2,3],[4,5,6],[7,8,9]]);
[ 1 2 3 ]
[ 4 5 6 ]
[ 7 8 9 ]
[1] rowx(A,1,2)$
[2] A;
[ 1 2 3 ]
[ 7 8 9 ]
[ 4 5 6 ]
[3] rowm(A,2,x);
[ 1 2 3 ]
[ 7 8 9 ]
[ 4*x 5*x 6*x ]
[4] rowa(A,0,1,z);
[ 7*z+1 8*z+2 9*z+3 ]
[ 7 8 9 ]
[ 4*x 5*x 6*x ]
References
section newmat, matrix


Go to the first, previous, next, last section, table of contents.