NLA-lib Explorer

NLAlib.LanczosRun.norm_mulVec_basis_mulVec_sub_smul_le

Library · theorem

Headline of lanczos-ritz-residual

The Ritz residual bound for finite-precision Lanczos (assuming k\varepsilon \le 1/100): for a unit eigenpair \mathbf{T}_k\mathbf{y} = \theta\mathbf{y}, \|\mathbf{y}\| = 1, of the computed tridiagonal matrix, the Ritz vector \mathbf{x} = \mathbf{V}_k\mathbf{y} satisfies <!-- value lanczosResidualFactor k --> \|\mathbf{H}\mathbf{x} - \theta\mathbf{x}\| \le \sqrt{1 + \varepsilon}\,\beta_k\lvert y_{k-1}\rvert + 6k\sqrt{k}\,\varepsilon\|\mathbf{H}\|_2 \,. No printed source; the maintainer's draft, eq:ritz-residual-bound, with \|\mathbf{F}_k\| for the last term and both sides divided by \|\mathbf{x}\|. Result: lanczos-ritz-residual

NLAlib.LanczosRun.norm_mulVec_basis_mulVec_sub_smul_le {n k : ℕ} (L : LanczosRun n k)
  (hsmall : ↑k * L.ε ≤ 1 / 100) {y : Fin k → ℝ} {θ : ℝ} (hy : L.tridiagonal *ᵥ y = θ • y)
  (hy1 : ‖WithLp.toLp 2 y‖ = 1) :
  ‖WithLp.toLp 2 (L.H *ᵥ L.basis *ᵥ y - θ • L.basis *ᵥ y)‖ ≤
    √(1 + L.ε) * L.β k * |y L.lastIndex| + lanczosResidualFactor k * L.ε * specNorm L.H

Full source on GitHub

Import NLAlib.Krylov.FinitePrecision.Recurrence.