NLA-lib Explorer

Matrix.PosDef.pcgState_r_eq_zero_iff

Library · theorem

PCG stops exactly at the grade: for positive definite \mathbf{A} and \mathbf{M} the computed residual vanishes iff k is at least the grade of \mathbf{M}\mathbf{r}_0 for \mathbf{M}\mathbf{A}, which is the grade of the split system.

Matrix.PosDef.pcgState_r_eq_zero_iff.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  [DecidableEq n] {A M : Matrix n n 𝕜} (hA : A.PosDef) (hM : M.PosDef) (b x₀ : n → 𝕜) (k : ℕ) :
  (pcgState A M b x₀ k).r = 0 ↔ krylovGrade (M * A) (M *ᵥ (b - A *ᵥ x₀)) ≤ k

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.PCGRecurrence.