NLA-lib Explorer

The Moore–Penrose pseudoinverse

Library · Source module

The Moore–Penrose pseudoinverse

NLAlib.pinv A is the Moore–Penrose pseudoinverse \mathbf{A}^{+} of a matrix \mathbf{A} of any shape and rank. It is the unique matrix satisfying the four Penrose identities (NLAlib.IsPinv), and NLAlib.pinv_eq_iff identifies it by them. It is the library's only pseudoinverse: the full-rank formulas (\mathbf{A}^{\mathsf{H}}\mathbf{A})^{-1}\mathbf{A}^{\mathsf{H}} and \mathbf{A}^{\mathsf{H}}(\mathbf{A}\mathbf{A}^{\mathsf{H}})^{-1} are lemmas about it (NLAlib.pinv_eq_inv_mul_conjTranspose, NLAlib.pinv_eq_conjTranspose_mul_inv), taking the full-rank hypothesis in the form Function.Injective A.mulVec.

The two products with \mathbf{A} are orthogonal projectors: \mathbf{A}\mathbf{A}^{+} = \mathbf{P}_{\mathbf{A}} and \mathbf{A}^{+}\mathbf{A} = \mathbf{P}_{\mathbf{A}^{\mathsf{H}}}, with \mathbf{P}_{\mathbf{A}} the orthogonal projector onto the range of \mathbf{A} (rangeProjector).

Main definitions

* NLAlib.pinv: the Moore–Penrose pseudoinverse.

Main results

* NLAlib.exists_isPinv, NLAlib.isPinv_pinv, NLAlib.pinv_eq_iff: existence and characterisation. * NLAlib.mul_pinv, NLAlib.pinv_mul: the projector identities. * NLAlib.IsSVD.pinv_eq: the pseudoinverse from any singular value decomposition. * NLAlib.pinv_conjTranspose, NLAlib.pinv_pinv, NLAlib.pinv_smul, NLAlib.HasOrthonormalCols.pinv_mul_left: transformations. * NLAlib.pinv_eq_inv_mul_conjTranspose, NLAlib.pinv_mul_self_of_injective: full column rank. * NLAlib.pinv_mul_rev: the reverse-order law. * NLAlib.HasOrthonormalCols.pinv_conjTranspose_mul_self_eq_mul_conjTranspose: the Gram pseudoinverse from any orthogonal factorization. * NLAlib.pinv_replicateRow: the pseudoinverse of a row.

Declarations