Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Pseudoinverse of a matrix (pseudo_inverse)

Moore-Penrose pseudo-inverse of a matrix.

How to write it

pseudo_inverse(matrix)

matrix
A matrix, written as a list of rows. Takes a matrix, written as a list of rows.

Examples

  • pseudo_inverse⁡((1224))=(125225225425)\displaystyle \operatorname{pseudo\_inverse}\left(\begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix}\right) = \begin{pmatrix} \frac{1}{25} & \frac{2}{25} \\ \frac{2}{25} & \frac{4}{25} \end{pmatrix}
    pseudo_inverse([[1, 2], [2, 4]])

    In the solver, pseudo_inverse([[1, 2], [2, 4]]) gives [[1/25, 2/25], [2/25, 4/25]].

    Open in the solver
  • inverse

    Inverse of a square matrix.

  • qr_decomposition

    QR decomposition of a matrix: an orthogonal factor and an upper triangular one.

  • orthogonalize

    Orthonormal vectors spanning the same space as some vectors, by the Gram-Schmidt process.

  • rank

    Rank of a matrix: the number of independent rows.

  • null_space

    A basis of the null space of a matrix: the vectors v with A v = 0.

  • row_reduce

    Reduced row echelon form of a matrix.