NLA-lib Explorer

Matrix.PosDef.mulVec_cgIterate_eq_of_krylovGrade_le

Library · theorem

At or beyond the initial residual's grade, exact positive-definite CG solves the system. The residual identity supplies this conclusion without an assumed solution vector. [HestenesStiefel1952, Theorem 5:1].

Matrix.PosDef.mulVec_cgIterate_eq_of_krylovGrade_le.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.PosDef) (b x₀ : n → 𝕜)
  {k : ℕ} (hk : krylovGrade A (b - A *ᵥ x₀) ≤ k) : A *ᵥ cgIterate A b x₀ k = b

Full source on GitHub

Import NLAlib.Krylov.CG.Math.Recurrence.