Man
algebra
Matrix
rank (free function)
rank (Matrix)
Returns rank of a matrix.
Arguments
The
matrix
to get rank of (see
Matrix
).
Return values
rank
as an integer number.
Complexity
O(size^3)
Example
"sl/algebra" useFile m1: ((2.0 1.0 1.0) (-5.0 1.0 2.0) (-1.0 0.66666666666666 1.0)) makeMatrix; m2: ((3.0 1.0) (1.0 2.0) (2.0 1.0)) makeMatrix; m3: ((2.0 1.0 1.0) (-5.0 1.0 2.0) (-1.0 0.6666 1.0)) makeMatrix; (m1 rank m2 rank m3 rank) print
Output:
( 2 2 3 )