NLA-lib Explorer

Finite-precision Lanczos runs with full reorthogonalization

Library · Source module

Finite-precision Lanczos runs with full reorthogonalization

NLAlib.LanczosReorthRun n k is the data of k computed steps of Lanczos with full reorthogonalization in Paige's order and the local guarantees that rounded execution supplies: the local errors of NLAlib.LanczosRun for the product and the two updates, the stored norm \nu_j of \mathbf{z}_j, the orthogonalization guarantee NLAlib.IsOrthErr of \mathbf{z}_j against \mathbf{v}_1, \dots, \mathbf{v}_j (parameters \eta_0, \varepsilon_1, \varepsilon_2, \varepsilon_3), the normalization, and strict \tau-admissibility \tau\nu_j < \beta_j of every step (the stopping criterion of [Paige1970] in contract form). It is not a NLAlib.LanczosRun: the reorthogonalization correction is absolute, not relative to \|\mathbf{w}_j\|. Indices as in NLAlib.LanczosRun: \mathbf{v}_0 = \mathbf{0}, steps j + 1 for j < k, coefficient h_{j+1, i} of \mathbf{z}_{j+1} against \mathbf{v}_{i+1} for i \le j. Design: docs/design/Krylov-LanczosReorth.md §3.1.

Main definitions

* NLAlib.LanczosReorthRun: the run. * NLAlib.LanczosReorthRun.basisOf: the first m vectors as a matrix. * NLAlib.LanczosReorthRun.toLanczosData: the underlying three-term data. * NLAlib.LanczosReorthRun.orthLevel, NLAlib.LanczosReorthRun.recLevel: the per-column orthogonality level \mu and the recurrence level \mu + \varepsilon + \varepsilon_2. * NLAlib.LanczosReorthRun.backwardRadius, NLAlib.LanczosReorthRun.colSeq: the backward radius and the columns of a basis as a sequence. * NLAlib.LanczosReorthRun.firstIndex: the index 0 of Fin k. * NLAlib.reorthSteps: the admissible prefix read off computed outputs.

Main results

* NLAlib.LanczosReorthRun.recurrenceError_eq: the residual of the three-term relation. * NLAlib.LanczosReorthRun.norm_transpose_mulVec_v_le: one admissible column is nearly orthogonal to the previous ones. * NLAlib.LanczosReorthRun.frobNorm_transpose_mul_self_sub_one_le: orthogonality of the computed basis, \|\mathbf{V}_m^{\mathsf{T}}\mathbf{V}_m - \mathbf{I}\|_{\mathsf{F}} \le \sqrt{3m}\,\mu. * NLAlib.LanczosReorthRun.succ_le_card: the run stops by step n. * NLAlib.LanczosReorthRun.exists_ofLE: prefixes of a run are runs.

Basic API

* NLAlib.LanczosReorthRun.orthLevel_nonneg, NLAlib.LanczosReorthRun.recLevel_nonneg, NLAlib.LanczosReorthRun.orthLevel_le_recLevel: the levels. * NLAlib.LanczosReorthRun.β_succ_pos, NLAlib.LanczosReorthRun.β_nonneg: signs of \beta_j. * NLAlib.LanczosReorthRun.norm_v_sq_le, NLAlib.LanczosReorthRun.norm_v_le: norms of the Lanczos vectors. * NLAlib.LanczosReorthRun.specNorm_transpose_mul_self_sub_one_le: the spectral form of the orthogonality bound.

The coefficient bounds are in NLAlib/Krylov/FinitePrecision/LanczosReorthCoefficients.lean, the perturbed Lanczos relation in NLAlib/Krylov/FinitePrecision/LanczosReorthResidual.lean.

Declarations