NLA-lib Explorer

The Lanczos recurrence with full reorthogonalization

Library · Source module

The Lanczos recurrence with full reorthogonalization

NLAlib.lanczosReorthState A b j is the state before step j of Lanczos with full reorthogonalization in exact arithmetic: Paige's order \mathbf{z}_j = \mathbf{A}\mathbf{q}_j - \beta_j\mathbf{q}_{j-1} - \alpha_j\mathbf{q}_j (as NLAlib.lanczosStep), then two classical Gram–Schmidt passes of \mathbf{z}_j against \mathbf{q}_0, \dots, \mathbf{q}_j (NLAlib.cgsProject), then normalization, with 0^{-1} = 0 at breakdown. The state also records the norm \nu_j = \|\mathbf{z}_j\| before orthogonalization, which the program stores. For every square \mathbf{A} the recurrence is total; for Hermitian \mathbf{A} it is the Lanczos recurrence (the reorthogonalization subtracts zeros). [Paige1970]. Design: docs/design/Krylov-LanczosReorth.md §2.3.

Main definitions

* NLAlib.cgsProject: one exact classical Gram–Schmidt pass. * NLAlib.LanczosReorthState, NLAlib.lanczosReorthStep, NLAlib.lanczosReorthState, NLAlib.lanczosReorthMatrix: the recurrence and its basis.

Main results

* Matrix.IsHermitian.lanczosReorthState_toLanczosState, Matrix.IsHermitian.lanczosReorthMatrix_eq, Matrix.IsHermitian.lanczosReorthState_nu.

Declarations