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ā)))Import NLAlib.Krylov.LinearSystems.CG.