NLAlib.exists_sub_cgIterate_eq_aeval
Library · theorem
The CG error polynomial: for \mathbf{A}\mathbf{x}_\star = \mathbf{b} there is p \in \Bbbk[X] with \deg p \le q and p(0) = 1 such that \mathbf{x}_\star - \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q) = p(\mathbf{A})(\mathbf{x}_\star - \mathbf{x}_0). No assumption on \mathbf{A}. [Saad2003, §6.11.3].
NLAlib.exists_sub_cgIterate_eq_aeval.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
[DecidableEq n] {A : Matrix n n 𝕜} {b xs : n → 𝕜} (hxs : A *ᵥ xs = b) (x₀ : n → 𝕜) (q : ℕ) :
∃ p,
p.degree ≤ ↑q ∧
Polynomial.eval 0 p = 1 ∧ xs - cgIterate A b x₀ q = (Polynomial.aeval A) p *ᵥ (xs - x₀)Import NLAlib.Krylov.LinearSystems.CG.