NLA-lib Explorer

Matrix.PosDef.eq_pcgIterate_of_conjTranspose_krylovMatrix_mulVec_sub_eq_zero

Library · theorem

The Galerkin condition characterises PCG: for positive definite \mathbf{A}, a vector of \mathbf{x}_0 + \mathcal{K}_q(\mathbf{M}\mathbf{A}, \mathbf{M}\mathbf{r}_0) whose residual is orthogonal to that space is the PCG iterate \mathsf{pcgIterate}(\mathbf{A}, \mathbf{M}, \mathbf{b}, \mathbf{x}_0, q).

Matrix.PosDef.eq_pcgIterate_of_conjTranspose_krylovMatrix_mulVec_sub_eq_zero.{u_1, u_2}
  {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜}
  (hA : A.PosDef) {M : Matrix n n 𝕜} {b x₀ y : n → 𝕜} {q : ℕ}
  (hy : y - x₀ ∈ krylovSpace (M * A) (M *ᵥ (b - A *ᵥ x₀)) q)
  (h : (krylovMatrix (M * A) (M *ᵥ (b - A *ᵥ x₀)) q)ᴴ *ᵥ (b - A *ᵥ y) = 0) :
  y = pcgIterate A M b x₀ q

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.PCG.