NLA-lib Explorer

NLAlib.isLeastSquaresSolution_iff_eq_pinv_mulVec

Library ยท theorem

With full column rank the pseudoinverse solution is the only least-squares solution: \mathbf{x} is one exactly when \mathbf{x} = \mathbf{A}^{+}\mathbf{b}.

NLAlib.isLeastSquaresSolution_iff_eq_pinv_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 ๐•œ}
  (hA : Function.Injective A.mulVec) {b : m โ†’ ๐•œ} {x : n โ†’ ๐•œ} :
  IsLeastSquaresSolution A b x โ†” x = pinv A *แตฅ b

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.LeastSquares.