up
previous
next
NewVector
Syntax
NewVector(N:INT):VECTOR
NewVector(N:INT,E:OBJECT):VECTOR
where E is cast-able to POLY.
Summary
create a new vector
Description
The second function returns a vector of length N, each of whose
components is E. The first function, in which E is not indicated,
returns a vector of length N filled with zeros.
example
Use R ::= Q[x,y];
NewVector(4);
Vector(0, 0, 0, 0)
-------------------------------
NewVector(3,x^2+y);
Vector(x^2 + y, x^2 + y, x^2 + y)
-------------------------------
See Also