NLA-lib Explorer

Matrix.IsHermitian.lanczosFA_inv_add_eq_cgIterate

Library · theorem

Shifted CG is Lanczos-FA for a shifted inverse, for Hermitian \mathbf{A} and real s: \mathsf{lanczosFA}(\mathbf{A}, x \mapsto (x + s)^{-1}, \mathbf{b}, q) = \mathsf{cgIterate}(\mathbf{A} + s\mathbf{I}, \mathbf{b}, \mathbf{0}, q), by shift invariance of the Krylov space (krylovSpace_add_smul_one) and the frame forms. [Saad2003, §6.7.1]; (6.86) there writes the CG iterate as \mathbf{x}_0 + \mathbf{V}_m\mathbf{T}_m^{-1}(\beta\mathbf{e}_1) with the Lanczos basis \mathbf{V}_m, \beta = \|\mathbf{r}_0\|, which at \mathbf{x}_0 = \mathbf{0} is the Lanczos-FA approximation for f(\mathbf{x}) = \mathbf{x}^{-1}; the shift s and the singular case are the library's. Result: lanczos-fa-cg

Matrix.IsHermitian.lanczosFA_inv_add_eq_cgIterate.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) (s : ℝ)
  (b : n → 𝕜) (q : ℕ) : lanczosFA A (fun x ↦ (x + s)⁻¹) b q = cgIterate (A + s • 1) b 0 q

Full source on GitHub

Import NLAlib.Krylov.Functions.LanczosFA.