CoCoA:NumCols

From ApCoCoAWiki

NumCols

number of columns in a matrix

Description

This function returns the number of columns in a matrix.

Example

  M := Mat([[1,2,3], [4,5,6]]);
  NumCols(M);
3
-------------------------------

Syntax

NumCols(M):INT

Mat

NumRows

   <type>matrix</type>