Handbook
Glossary
rank ( matrix -- rank )
Extra matrix operations
Prev:
outer-product ( u v -- matrix )
Next:
nullity ( matrix -- nullity )
Vocabulary
math
.
matrices
.
extras
Inputs
matrix
a
matrix
Outputs
rank
a
rank-kind
Generic word contract
The
rank
of a
matrix
is how its number of linearly independent columns compare to the maximal number of linearly independent columns for a matrix with the same dimension.
Notes
See
https://en.wikipedia.org/wiki/Rank_(linear_algebra)
for more information.
Definition
IN:
math.matrices.extras
GENERIC:
rank
( matrix -- rank )
Methods
USING:
math.matrices
math.matrices.extras
math.matrices.extras.private
;
M:
matrix
rank
nonsquare-rank
;
USING:
math.matrices
math.matrices.extras
math.matrices.extras.private
;
M:
square-matrix
rank
square-rank
;
USING:
kernel
math.matrices
math.matrices.extras
;
M:
zero-matrix
rank
drop
+zero-rank+
;