NLA-lib Explorer

Graded Krylov bases and the Lanczos basis

Library · Source module

Graded Krylov bases and the Lanczos basis

An orthonormal basis is graded by the Krylov spaces when its first j + 1 columns span \mathcal{K}_{j+1}(\mathbf{A}, \mathbf{b}) for every j. The compression \mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q} to such a basis is upper Hessenberg, and tridiagonal for Hermitian \mathbf{A}; it is always written out, never bundled. The canonical graded basis is the Gram–Schmidt matrix of the Krylov matrix (the Arnoldi basis; for Hermitian \mathbf{A} the Lanczos basis). Its columns from the grade on are zero, so it is orthonormal exactly up to the grade, while its range, the Arnoldi relation and its first coordinate need no hypothesis.

The three-term recurrence that computes this basis for Hermitian \mathbf{A} is in NLAlib.Krylov.Processes.LanczosRecurrence, the modified Gram–Schmidt Arnoldi process that computes it for every \mathbf{A} in NLAlib.Krylov.Processes.ArnoldiRecurrence; the corollary that Lanczos yields the conjugate gradient iterate is in NLAlib.Krylov.LinearSystems.CGLanczos.

Main definitions

* NLAlib.IsGradedKrylovBasis: an orthonormal basis graded by the Krylov spaces. * NLAlib.arnoldiMatrix: the canonical one, gramSchmidtQ (krylovMatrix A b q).

Main results

* NLAlib.HasOrthonormalCols.isGradedKrylovBasis_of_forall_col_mem: the constructor from column membership. * NLAlib.IsGradedKrylovBasis.isUpperHessenberg, NLAlib.IsGradedKrylovBasis.isTridiagonal. * NLAlib.IsGradedKrylovBasis.eq_arnoldiMatrix: uniqueness under a positive diagonal. * NLAlib.HasOrthonormalCols.isGradedKrylovBasis_of_isUnreducedHessenberg, NLAlib.HasOrthonormalCols.eq_arnoldiMatrix_of_isUpperHessenberg: the basis of an unreduced Hessenberg reduction and its normalization. * NLAlib.hasOrthonormalCols_arnoldiMatrix_iff, NLAlib.isGradedKrylovBasis_arnoldiMatrix. * NLAlib.conjTranspose_arnoldiMatrix_mulVec_self: \mathbf{Q}^{\mathsf{H}}\mathbf{b} = \|\mathbf{b}\|\mathbf{e}_0. * NLAlib.mul_arnoldiMatrix: the Arnoldi relation, for every q. * The columns: NLAlib.arnoldiMatrix_col_eq_col_last, NLAlib.star_arnoldiMatrix_col_last_dotProduct_of_ne, NLAlib.exists_gramSchmidtR_smul_arnoldiMatrix_col_last, NLAlib.arnoldiMatrix_col_last_eq_zero_iff (zero exactly from the grade on), NLAlib.norm_arnoldiMatrix_col_last. * NLAlib.arnoldiMatrix_col_succ: the canonical Arnoldi step. * NLAlib.submatrix_conjTranspose_arnoldiMatrix_mul_mul_arnoldiMatrix_castSucc: the rectangular Hessenberg matrix inside the square compression.

Declarations