[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.6.5 newmat

newmat(row,col [,[[a,b,...],[c,d,...],...]])
:: Creates a new matrix with row rows and col columns.

return
matrix
row col
non-negative integer
a b c d
arbitrary

 
[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

References
6.6.1 newvect, 6.6.6 size, 6.6.7 det,invmat.



This document was generated by root on March, 5 2004 using texi2html