linalg::ncols
-- number of columns
of a matrixlinalg::ncols
(A)
returns the number of
columns of the matrix A.
linalg::ncols(A)
A |
- | a matrix of a domain of category Cat::Matrix |
a positive integer.
linalg::matdim
,
linalg::nrows
, linalg::vecdim
The matrix:
>> A:= matrix([[1, 2, 3, 4], [3, 1, 4], [5, 6]])
+- -+ | 1, 2, 3, 4 | | | | 3, 1, 4, 0 | | | | 5, 6, 0, 0 | +- -+
has four columns:
>> linalg::ncols(A)
4