NLA-lib Explorer

Matrix.PosDef.cgState_x_eq

Library · theorem

Headline of cg-recurrence

The Hestenes–Stiefel iterates are the CG iterates: for positive definite \mathbf{A} and every k, with no breakdown hypothesis, \mathbf{x}_k = \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, k). [HestenesStiefel1952, Theorem 6:1]; [TrefethenBau1997, Theorem 38.1]. Hestenes and Stiefel show that \mathbf{x}_k minimises the \mathbf{A}-norm error on the plane through \mathbf{x}_0, \dots, \mathbf{x}_k, which is \mathbf{x}_0 + \mathcal{K}_k(\mathbf{A}, \mathbf{r}_0) (\mathbf{M}atri\mathbf{x}.\mathbf{P}osDef.span_cgState_p), for real symmetric \mathbf{A} and up to termination; here every k. Result: cg-recurrence

Matrix.PosDef.cgState_x_eq.{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).x = cgIterate A b x₀ k

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.CGRecurrence.