NLA-lib Explorer

Matrix.PosDef.pcgIterate_eq

Library · theorem

PCG in any orthonormal basis of the preconditioned Krylov space, for positive definite \mathbf{A}: \mathsf{pcgIterate}(\mathbf{A}, \mathbf{M}, \mathbf{b}, \mathbf{x}_0, q) = \mathbf{x}_0 + \mathbf{Q}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q})^{-1} \mathbf{Q}^{\mathsf{H}}\mathbf{r}_0. [Saad2003, §9.2].

Matrix.PosDef.pcgIterate_eq.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} {r : Type u_3}
  [Fintype n] [DecidableEq n] [Fintype r] [DecidableEq r] {A : Matrix n n 𝕜} (hA : A.PosDef)
  (M : Matrix n n 𝕜) {Q : Matrix n r 𝕜} (hQ : HasOrthonormalCols Q) {b x₀ : n → 𝕜} {q : ℕ}
  (hK : Q.mulVecLin.range = krylovSpace (M * A) (M *ᵥ (b - A *ᵥ x₀)) q) :
  pcgIterate A M b x₀ q = x₀ + Q *ᵥ (Qᴴ * A * Q)⁻¹ *ᵥ Qᴴ *ᵥ (b - A *ᵥ x₀)

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.PCG.