NLA-lib Explorer

NLAlib.IsLeastSquaresSolution.pinv_mulVec_mulVec

Library · theorem

The pseudoinverse sends the image \mathbf{A}\mathbf{x} of a least-squares solution \mathbf{x} to the pseudoinverse solution: \mathbf{A}^{+}\mathbf{A}\mathbf{x} = \mathbf{A}^{+}\mathbf{b}. So \mathbf{A}^{+}\mathbf{b} is the projection of any least-squares solution onto the row space of \mathbf{A}.

NLAlib.IsLeastSquaresSolution.pinv_mulVec_mulVec.{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 𝕜} {b : m → 𝕜} {x : n → 𝕜}
  (h : IsLeastSquaresSolution A b x) : pinv A *ᵥ A *ᵥ x = pinv A *ᵥ b

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.LeastSquares.