up previous next
ColumnVectors

the list of column vectors of a matrix
Syntax

ColumnVectors(M:LIST or MAT):LIST of VECTOR

where if M is a list, is must be cast-able as a matrix.


Description
This function returns the list of column vectors of the matrix M.

Example
  Use R ::= QQ[x,y];
  M := Mat([[1,1], [x,y], [x^2,y^2]]);
  M;
Mat([
  [1, 1],
  [x, y],
  [x^2, y^2]
])
-------------------------------
  ColumnVectors(M);
[Vector(1, x, x^2), Vector(1, y, y^2)]
-------------------------------