NLA-lib Explorer

NLAlib.LanczosData.mul_basis

Library · theorem

The perturbed Lanczos recurrence: the computed basis satisfies \mathbf{H}\mathbf{V}_k = \mathbf{V}_k\mathbf{T}_k + (\beta_k\mathbf{v}_{k+1})\mathbf{e}_{k-1}^{\mathsf{T}} + \mathbf{F}_k (\mathbf{e}_{k-1} the last coordinate vector, indexed from 0), an identity of the definitions. No printed source; the maintainer's draft, eq:governing, writes it as \mathbf{V}_{k+1}\underline{\mathbf{T}}_k + \mathbf{F}_k.

NLAlib.LanczosData.mul_basis {n k : ℕ} (D : LanczosData n k) :
  D.H * D.basis =
    D.basis * D.tridiagonal + vecMulVec (D.β k • D.v (k + 1)) (Pi.single D.lastIndex 1) + D.residual

Full source on GitHub

Import NLAlib.Krylov.FinitePrecision.LanczosData.