Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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⁡(123456)=2\displaystyle \operatorname{rank} \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix} = 2
    rank([[1, 2, 3], [4, 5, 6]])

    In the solver, rank([[1, 2, 3], [4, 5, 6]]) gives 2.

    Open in the solver
  • 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.