NLA-lib Explorer

NLAlib.IsLeastSquaresSolution.mulVec_eq_rangeProjector_mulVec

Library ยท theorem

For a least-squares solution \mathbf{x}, \mathbf{A}\mathbf{x} = \mathbf{P}_{\mathbf{A}}\mathbf{b} is the projection of \mathbf{b} onto the column space of \mathbf{A}: the forward direction of isLeastSquaresSolution_iff_mulVec_eq_rangeProjector_mulVec.

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

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.LeastSquares.