NLA-lib Explorer

NLAlib.IsLeastSquaresSolution.norm_sub_mulVec_eq

Library · theorem

The smallest possible residual: \|\mathbf{b} - \mathbf{A}\mathbf{x}\| = \|(\mathbf{I} - \mathbf{P}_{\mathbf{A}})\mathbf{b}\|.

NLAlib.IsLeastSquaresSolution.norm_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) :
  ‖WithLp.toLp 2 (b - A *ᵥ x)‖ = ‖WithLp.toLp 2 ((1 - rangeProjector A) *ᵥ b)‖

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.LeastSquares.