NLA-lib Explorer

NLAlib.isLeastSquaresSolution_iff_mulVec_eq_rangeProjector_mulVec

Library ยท theorem

\mathbf{x} is a least-squares solution exactly when \mathbf{A}\mathbf{x} is the projection of \mathbf{b} onto the column space of \mathbf{A}: \mathbf{A}\mathbf{x} = \mathbf{P}_{\mathbf{A}}\mathbf{b}.

NLAlib.isLeastSquaresSolution_iff_mulVec_eq_rangeProjector_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 โ†’ ๐•œ} : IsLeastSquaresSolution A b x โ†” A *แตฅ x = rangeProjector A *แตฅ b

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.LeastSquares.