Man
Algebra
Matrix
dimension
Matrix.dimension
Returns the dimension of the matrix.
Arguments
None
Return values
(columns rows)
, a pair of integer numbers.
Complexity
Constant
Example
"sl/algebra" useFile m: ((1.0 3.0 2.0) (1.0 2.0 3.0)) makeMatrix; m.dimension print
Output:
( 3 2 )