NLA-lib Explorer

The Arnoldi basis yields GMRES

Library · Result group

Theorem (gmresIterate_eq_arnoldiMatrix). The Arnoldi basis yields GMRES, for every \mathbf{A} and q: with \mathbf{r}_0 = \mathbf{b} - \mathbf{A}\mathbf{x}_0, the canonical bases \mathbf{Q}_j = \mathsf{arnoldiMatrix}(\mathbf{A}, \mathbf{r}_0, j) and \underline{\mathbf{H}}_q = \mathbf{Q}_{q+1}^{\mathsf{H}}\mathbf{A}\mathbf{Q}_q, \mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q) = \mathbf{x}_0 + \|\mathbf{r}_0\|\,\mathbf{Q}_q\underline{\mathbf{H}}_q^{+}\mathbf{e}_0, with no grade hypothesis. [SaadSchultz1986, §3.1]; [Saad2003, §6.5.1]. It is (8) there, and (6.29)–(6.30) in Saad's book, with the least-squares minimiser of \|\|\mathbf{r}_0\|\mathbf{e}_0 - \underline{\mathbf{H}}_q\mathbf{y}\| in place of the pseudoinverse, for q up to the breakdown step.

Headline (provisional)

Lean statement and details
NLAlib.gmresIterate_eq_arnoldiMatrix.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  [DecidableEq n] (A : Matrix n n 𝕜) (b x₀ : n → 𝕜) (q : ℕ) :
  gmresIterate A b x₀ q =
    x₀ +
      ↑‖WithLp.toLp 2 (b - A *ᵥ x₀)‖ •
        arnoldiMatrix A (b - A *ᵥ x₀) q *ᵥ
          pinv ((arnoldiMatrix A (b - A *ᵥ x₀) (q + 1))ᴴ * A * arnoldiMatrix A (b - A *ᵥ x₀) q) *ᵥ
            Pi.single 0 1

Full source on GitHub

Copy link

Other forms

Theorem (gmresIterate_eq_mgsArnoldiMatrix). The Arnoldi process yields GMRES, for every \mathbf{A} and q, with the basis \mathbf{V}_q and the Hessenberg matrix \underline{\mathbf{H}}_q computed by arnoldiState from \mathbf{r}_0 = \mathbf{b} - \mathbf{A}\mathbf{x}_0: \mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q) = \mathbf{x}_0 + \|\mathbf{r}_0\|\,\mathbf{V}_q\underline{\mathbf{H}}_q^{+}\mathbf{e}_0. [SaadSchultz1986, Algorithm 3]; [Saad2003, Algorithm 6.9]; both stop at the first zero h_{j+1,j}, here the formula holds for every q.

Lean statement and details
NLAlib.gmresIterate_eq_mgsArnoldiMatrix.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2}
  [Fintype n] [DecidableEq n] (A : Matrix n n 𝕜) (b x₀ : n → 𝕜) (q : ℕ) :
  gmresIterate A b x₀ q =
    x₀ +
      ↑‖WithLp.toLp 2 (b - A *ᵥ x₀)‖ •
        mgsArnoldiMatrix A (b - A *ᵥ x₀) q *ᵥ
          pinv (mgsArnoldiHessenberg A (b - A *ᵥ x₀) q) *ᵥ Pi.single 0 1

Full source on GitHub

Copy link