NLA-lib Explorer

Conjugate gradients through the Lanczos basis

Library · Source module

Conjugate gradients through the Lanczos basis

For every \mathbf{A} and every q, the CG iterate is \mathbf{x}_0 + \|\mathbf{r}_0\|\,\mathbf{Q}\mathbf{T}^{+}\mathbf{e}_0 with \mathbf{Q} the canonical (Lanczos) basis of \mathcal{K}_{q+1}(\mathbf{A}, \mathbf{r}_0) and \mathbf{T} = \mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}, tridiagonal for Hermitian \mathbf{A}; for Hermitian \mathbf{A} the Lanczos recurrence computes \mathbf{Q} and \mathbf{T}. No hypothesis on the grade is needed: the small system is solved by the pseudoinverse of \mathbf{T}, which below the grade is \mathbf{T}^{-1} (for positive definite \mathbf{A}) and past it is \operatorname{diag}(\mathbf{T}_\nu^{-1}, \mathbf{0}), matching the zero columns of the canonical basis, so the iterate is unchanged once the grade is reached.

Main results

* NLAlib.galerkinInverse_krylovMatrix_eq_arnoldiMatrix: the Galerkin inverse in the canonical basis, every q. * NLAlib.cgIterate_eq_arnoldiMatrix: the Lanczos basis yields CG. * Matrix.IsHermitian.cgIterate_eq_lanczosMatrix: the Lanczos recurrence yields CG.

Declarations