NLA-lib Explorer

The Lanczos three-term recurrence

Library · Source module

The Lanczos three-term recurrence

The Lanczos algorithm as a total recursion on a state indexed by the step: the state before step j holds \mathbf{q}_{j-1}, \mathbf{q}_j and \beta_j, and a step forms \mathbf{w} = \mathbf{A}\mathbf{q}_j - \beta_j\mathbf{q}_{j-1} - \alpha_j\mathbf{q}_j, then \beta_{j+1} = \|\mathbf{w}\| and \mathbf{q}_{j+1} = \mathbf{w}/\beta_{j+1}. Breakdown is a value: with 0^{-1} = 0 the vector after \beta_{j+1} = 0 is zero and the state stays zero.

The realisation theorems say that for Hermitian \mathbf{A} the recurrence computes the canonical Lanczos basis arnoldiMatrix A b q and its compression, for every q and with no breakdown hypothesis, because past the grade both the recurrence and the canonical basis are zero. Breakdown happens exactly at the grade.

Main definitions

* NLAlib.LanczosState, NLAlib.lanczosAlpha, NLAlib.lanczosStep, NLAlib.lanczosState. * NLAlib.lanczosMatrix, NLAlib.lanczosTridiagonal: the computed basis and tridiagonal matrix.

Main results

* Matrix.IsHermitian.lanczosMatrix_eq_arnoldiMatrix: the recurrence computes the Lanczos basis. * Matrix.IsHermitian.lanczosTridiagonal_eq: it computes the compression. * Matrix.IsHermitian.lanczosState_beta_eq_zero_iff: breakdown happens exactly at the grade. * NLAlib.lanczosState_eq_of_orthonormal_recurrence, NLAlib.lanczosState_beta_eq_of_orthonormal_recurrence: an orthonormal three-term recurrence is the Lanczos recurrence.

Declarations