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([[1, 2], [2, 4]])In the solver,
Open in the solverpseudo_inverse([[1, 2], [2, 4]])gives[[1/25, 2/25], [2/25, 4/25]].
Related functions
- 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.