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


newvect

newvect(len[,list])
:: Creates a new vector object with its length len.
return
vector
len
non-negative integer
list
list
[0] A=newvect(5);
[ 0 0 0 0 0 ]
[1] A=newvect(5,[1,2,3,4,[5,6]]);
[ 1 2 3 4 [5,6] ]
[2] A[0];
1
[3] A[4];
[5,6]
[4] size(A);
[5]
[5] def afo(V) { V[0] = x; }
[6] afo(A)$
[7] A;
[ x 2 3 4 [5,6] ]
References
section newmat, section size, section vtol.


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