NLA-lib Explorer

NLAlib.isMinOn_gmresIterate

Library · theorem

Headline of gmres-optimality

GMRES minimises the residual over \mathbf{x}_0 + \mathcal{K}_q(\mathbf{A}, \mathbf{r}_0), \mathbf{r}_0 = \mathbf{b} - \mathbf{A}\mathbf{x}_0, for every \mathbf{A}: \|\mathbf{b} - \mathbf{A}\,\mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\| \le \|\mathbf{b} - \mathbf{A}\mathbf{y}\| for e\mathbf{v}ery such \mathbf{y}. [SaadSchultz1986, §3.1]; [Saad2003, §6.5.1]. Both define GMRES by this property, (4) and (6.26) there; [Saad2003, Proposition 5.3] proves it from the Petrov–Galerkin condition. Result: gmres-optimality

NLAlib.isMinOn_gmresIterate.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  [DecidableEq n] (A : Matrix n n 𝕜) (b x₀ : n → 𝕜) (q : ℕ) :
  IsMinOn (fun y ↦ ‖WithLp.toLp 2 (b - A *ᵥ y)‖)
    (↑(AffineSubspace.mk' x₀ (krylovSpace A (b - A *ᵥ x₀) q))) (gmresIterate A b x₀ q)

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.GMRES.