NLA-lib Explorer

GMRES through the Arnoldi process

Library · Source module

GMRES through the Arnoldi process

For every square \mathbf{A} and every q, the GMRES iterate is \mathbf{x}_0 + \|\mathbf{r}_0\|\,\mathbf{Q}_q\underline{\mathbf{H}}_q^{+}\mathbf{e}_0, with \mathbf{Q}_q the Arnoldi basis of \mathcal{K}_q(\mathbf{A}, \mathbf{r}_0) and \underline{\mathbf{H}}_q = \mathbf{Q}_{q+1}^{\mathsf{H}}\mathbf{A}\mathbf{Q}_q the (q + 1) \times q Hessenberg matrix: the small least-squares problem \min_{\mathbf{y}}\|\|\mathbf{r}_0\|\mathbf{e}_0 - \underline{\mathbf{H}}_q\mathbf{y}\|, whose minimum-norm solution the pseudoinverse names. The same holds with the basis and Hessenberg matrix computed by the Arnoldi process. No grade hypothesis: past the grade the canonical basis has zero columns, \mathbf{Q}\mathbf{Q}^{\mathsf{H}}\mathbf{Q} = \mathbf{Q} still holds, and pinv_mul_of_conjTranspose_mul_self_mul_eq applies.

The standard implementation solves the small problem by Givens QR of \underline{\mathbf{H}}_q (NLAlib.givensHessenbergState) and back substitution (NLAlib.backSubst): gmresIterate_eq_backSubst_givensHessenberg is that realisation, for invertible \mathbf{A} and every q, with no hypothesis on the grade or on computed pivots (maintainer, 2026-10-17: the algorithm returns the same iterate once it reaches the grade). Past the grade the Arnoldi columns and the Hessenberg rows and columns from \nu on are zero, Givens QR keeps them zero (givensHessenbergState_apply_eq_zero_of_le, givensHessenbergState_snd_apply_eq_zero_of_col), the pivots from \nu on are zero and backSubst returns zero coefficients for them without disturbing the others (backSubst_castLE_of_apply_eq_zero). Invertibility is the problem-level hypothesis: for singular \mathbf{A} the last pivot before the grade can vanish while its column is not zero, and back substitution then differs from the least-norm solution. Up to the grade the pivots are nonzero (forall_givensHessenbergR_mgsArnoldiHessenberg_ne_zero_iff, a lemma, not a hypothesis). The residual norm is read off the rotated right-hand side (norm_sub_mulVec_gmresIterate_eq_norm_givensHessenbergQ).

Main results

* NLAlib.gmresIterate_eq_arnoldiMatrix: the canonical Arnoldi basis yields GMRES. * NLAlib.gmresIterate_eq_mgsArnoldiMatrix: the Arnoldi process yields GMRES. * NLAlib.gmresIterate_eq_backSubst_givensHessenberg: Arnoldi with Givens QR and back substitution yields GMRES. * NLAlib.norm_sub_mulVec_gmresIterate_eq_norm_givensHessenbergQ: the residual estimate. * NLAlib.forall_givensHessenbergR_mgsArnoldiHessenberg_ne_zero_iff: the pivots are nonzero exactly up to the grade.

Declarations