NLA-lib Explorer

Matrix.PosDef.cgState_r_eq_zero_iff

Library · theorem

CG stops exactly at the grade: for positive definite \mathbf{A} the computed residual vanishes iff k is at least the grade of \mathbf{r}_0. [Saad2003, §6.7].

Matrix.PosDef.cgState_r_eq_zero_iff.{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 : ℕ) :
  (cgState A b x₀ k).r = 0 ↔ krylovGrade A (b - A *ᵥ x₀) ≤ k

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.CGRecurrence.