linalg::nrows -- number of rows of
a matrix
Introductionlinalg::nrows(A) returns the number of
rows of the matrix A.
Call(s)linalg::nrows(A)
ParametersA |
- | a matrix of a domain of category Cat::Matrix |
Returnsa positive integer.
Related
Functionslinalg::matdim,
linalg::ncols, linalg::vecdim
Example
1The 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 three rows:
>> linalg::nrows(A)
3