NLA-lib Explorer

Matrix.PosDef.sweepVec_cgState_r

Library · theorem

The exact CG residual at index k survives projection against every earlier residual. This reuses the established residual orthogonality theorem; it does not assume a program run. [HestenesStiefel1952, Theorem 5:1].

Matrix.PosDef.sweepVec_cgState_r.{u_1} {n : Type u_1} [Fintype n] {A : Matrix n n ℝ} (hA : A.PosDef)
  (b x₀ : n → ℝ) (k : ℕ) :
  Krylov.CG.Reorth.sweepVec (fun j ↦ (cgState A b x₀ j).r) (cgState A b x₀ k).r k =
    (cgState A b x₀ k).r

Full source on GitHub

Import NLAlib.Krylov.CG.Reorth.Math.