Rank of a matrix (rank)
Rank of a matrix: the number of independent rows.
How to write it
rank(matrix)
- matrix
- A matrix, written as a list of rows. Takes a matrix, written as a list of rows.
Examples
rank([[1, 2, 3], [4, 5, 6]])In the solver,
Open in the solverrank([[1, 2, 3], [4, 5, 6]])gives2.
Related functions
- row_reduce
Reduced row echelon form of a matrix.
- qr_decomposition
QR decomposition of a matrix: an orthogonal factor and an upper triangular one.
- schur_decomposition
Schur decomposition of a square matrix: an orthogonal factor and an upper triangular one.
- pseudo_inverse
Moore-Penrose pseudo-inverse of a matrix.
- singular_value_decomposition
Singular value decomposition of a matrix: two orthogonal factors and the singular values.
- orthogonalize
Orthonormal vectors spanning the same space as some vectors, by the Gram-Schmidt process.