linalg(deprecated)
rank
rank of a matrix
Calling Sequence
Parameters
Description
Examples
rank(A)
A
-
matrix
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Rank], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The function rank computes the rank of a matrix, by performing Gaussian elimination on the rows of the given matrix. The rank of the matrix A is the number of non-zero rows in the resulting matrix.
The command with(linalg,rank) allows the use of the abbreviated form of this command.
with⁡linalg:
A≔matrix⁡3,3,x,1,0,0,0,1,x⁢y,y,1
A≔x10001x⁢yy1
rank⁡A
2
See Also
LinearAlgebra
Download Help Document