NLA-lib Explorer

The normal equations

Library · Result group

Theorem (isLeastSquaresSolution_iff_normal_equations). The normal equations. \mathbf{x} is a least-squares solution exactly when \mathbf{A}^{\mathsf{H}}\mathbf{A}\mathbf{x} = \mathbf{A}^{\mathsf{H}}\mathbf{b}. [GolubVanLoan2013, §5.3.1].

Headline

Lean statement and details
NLAlib.isLeastSquaresSolution_iff_normal_equations.{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ᴴ *ᵥ A *ᵥ x = Aᴴ *ᵥ b

Full source on GitHub

Copy link