NLA-lib Explorer

NLAlib.MGS.sqrt_residual_norm

Library · theorem

The squared norm of a nonzero Gram–Schmidt residual has positive real part; its scalar square root is exactly the nonnegative diagonal coefficient.

NLAlib.MGS.sqrt_residual_norm {𝕜 : Type} [RCLike 𝕜] {n : ℕ} (q : Fin n → 𝕜) (ρ : 𝕜) (hρ : 0 ≤ ρ)
  (hne : ρ ≠ 0) (hq : star q ⬝ᵥ q = 1) :
  0 < RCLike.re (star (ρ • q) ⬝ᵥ ρ • q) ∧ ↑√(RCLike.re (star (ρ • q) ⬝ᵥ ρ • q)) = ρ

Full source on GitHub

Import NLAlib.Matrix.Factorizations.MGS.Math.