NLA-lib Explorer

NLAlib.exists_sub_mulVec_gmresIterate_eq_aeval

Library · theorem

The GMRES residual polynomial: there is p \in \Bbbk[X] with \deg p \le q, p(0) = 1 and \mathbf{b} - \mathbf{A}\,\mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q) = p(\mathbf{A})\mathbf{r}_0, for e\mathbf{v}ery \mathbf{A}. [Saad2003, §6.11.4].

NLAlib.exists_sub_mulVec_gmresIterate_eq_aeval.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2}
  [Fintype n] [DecidableEq n] (A : Matrix n n 𝕜) (b x₀ : n → 𝕜) (q : ℕ) :
  ∃ p,
    p.degree ≤ ↑q ∧
      Polynomial.eval 0 p = 1 ∧
        b - A *ᵥ gmresIterate A b x₀ q = (Polynomial.aeval A) p *ᵥ (b - A *ᵥ x₀)

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.GMRES.