NLAlib.gmresIterate_eq_arnoldiMatrix
Library · theorem
Headline of gmres-arnoldi (provisional)
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. Result: gmres-arnoldi
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 1Import NLAlib.Krylov.LinearSystems.GMRESArnoldi.