NLA-lib Explorer

Matrix.PosDef.re_quadForm_sub_cgIterate_le_re_quadForm_aeval

Library Ā· theorem

CG beats every residual polynomial: for positive definite \mathbf{A}, \mathbf{A}\mathbf{x}_\star = \mathbf{b} and every real p with \deg p \le q, p(0) = 1, \|\mathbf{x}_\star - \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\|_{\mathbf{A}}^2 \le \|p(\mathbf{A})(\mathbf{x}_\star - \mathbf{x}_0)\|_{\mathbf{A}}^2 \,. [Saad2003, §6.11.3]. Result: cg-polynomial-bound

Matrix.PosDef.re_quadForm_sub_cgIterate_le_re_quadForm_aeval.{u_1, u_2} {š•œ : Type u_1} [RCLike š•œ]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n š•œ} (hA : A.PosDef) {b xs : n → š•œ}
  (hxs : A *ᵄ xs = b) (xā‚€ : n → š•œ) {q : ā„•} {p : Polynomial ā„} (hp : p.degree ≤ ↑q)
  (hpā‚€ : Polynomial.eval 0 p = 1) :
  RCLike.re (quadForm A (xs - cgIterate A b xā‚€ q)) ≤
    RCLike.re (quadForm A ((Polynomial.aeval A) p *ᵄ (xs - xā‚€)))

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.CG.