newmat, matrixmatrix は newmat の別名である.
size() で得られる.
M が行列のとき, M[I] により第 I 行をベクトルとして
取り出すことができる. このベクトルは, もとの行列と成分を共有しており,
いずれかの成分を書き換えれば, 他の対応する成分も書き換わることになる.
[0] A = newmat(3,3,[[1,1,1],[x,y],[x^2]]); [ 1 1 1 ] [ x y 0 ] [ x^2 0 0 ] [1] det(A); -y*x^2 [2] size(A); [3,3] [3] A[1]; [ x y 0 ] [4] A[1][3]; getarray : Out of range return to toplevel
newvect, vector, vect, section size, section det, nd_det, invmat.
Go to the first, previous, next, last section, table of contents.