CoCoA:ColumnVectors

From ApCoCoAWiki

ColumnVectors

the list of column vectors of a matrix

Description

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

Example

  Use R ::= Q[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)]
-------------------------------

Syntax

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

where if M is a list, is must be cast-able as a matrix.
   <type>matrix</type>
   <type>vector</type>