NLA-lib Explorer

NLAlib.IsLeastSquaresSolution.sub_mulVec_eq

Library ยท theorem

The least-squares residual is the projection of \mathbf{b} onto the orthogonal complement of the column space: \mathbf{b} - \mathbf{A}\mathbf{x} = (\mathbf{I} - \mathbf{P}_{\mathbf{A}})\mathbf{b}.

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

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.LeastSquares.