NLAlib.gmresIterate_eq_mgsArnoldiMatrix
Library · theorem
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. Result: gmres-arnoldi
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 1Import NLAlib.Krylov.LinearSystems.GMRESArnoldi.