up previous next
ColMat

single column matrix

Syntax
ColMat(L: LIST): MAT
ColMat(R: RING, L: LIST): MAT

Description
This function returns the matrix whose only column consists of the elements of the list L.

Example
/**/  ColMat([3,4,5]);
matrix(QQ,
 [[3],
  [4],
  [5]])

/**/  RingOf(It);  -- default ring is QQ
QQ

/**/  ColMat(ZZ, [3,4,5]);
matrix(ZZ,
 [[3],
  [4],
  [5]])
/**/  RingOf(It);
ZZ

See Also