NLA-lib Explorer

NLAlib.gmresIterate_eq_backSubst_givensHessenberg

Library · theorem

Headline of gmres-givens

Arnoldi with Givens QR yields GMRES, the standard implementation: with \underline{\mathbf{H}}_q computed by the Arnoldi process, \mathbf{R} the leading q \times q block of its Givens factor and \mathbf{g} the first q entries of the rotated \mathbf{e}_0, for invertible \mathbf{A} and every q, \mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q) = \mathbf{x}_0 + \|\mathbf{r}_0\|\,\mathbf{Q}_q\,\mathsf{backSubst}(\mathbf{R}, \mathbf{g}), with no hypothesis on the grade or on the computed pivots. [SaadSchultz1986, §3.2]; [Saad2003, Proposition 6.9]. Both solve the small least-squares problem by plane rotations and back substitution on the triangular system left after deleting the last row; the rotation signs here follow NLAlib.givens. Result: gmres-givens

NLAlib.gmresIterate_eq_backSubst_givensHessenberg.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : IsUnit A) (b x₀ : n → 𝕜)
  (q : ℕ) :
  gmresIterate A b x₀ q =
    x₀ +
      ↑‖WithLp.toLp 2 (b - A *ᵥ x₀)‖ •
        mgsArnoldiMatrix A (b - A *ᵥ x₀) q *ᵥ
          backSubst
            ((givensHessenbergR (mgsArnoldiHessenberg A (b - A *ᵥ x₀) q)).submatrix Fin.castSucc id)
            fun i ↦
            ((givensHessenbergQ (mgsArnoldiHessenberg A (b - A *ᵥ x₀) q))ᴴ *ᵥ Pi.single 0 1)
              i.castSucc

Full source on GitHub

Import NLAlib.Krylov.LinearSystems.GMRESArnoldi.