NLA-lib Explorer

NLAlib.pinv

Library · def

The Moore–Penrose pseudoinverse \mathbf{A}^{+} of a matrix of any shape and rank: the unique matrix satisfying the four Penrose identities with \mathbf{A}. For an invertible matrix it is the inverse, for the zero matrix it is zero, with full column rank it is (\mathbf{A}^{\mathsf{H}}\mathbf{A})^{-1}\mathbf{A}^{\mathsf{H}}. [GolubVanLoan2013, §5.5.2].

NLAlib.pinv.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_3} {n : Type u_4} [Fintype m]
  [Fintype n] (A : Matrix m n 𝕜) : Matrix n m 𝕜

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.Pinv.