NLA-lib Explorer

NLAlib.Krylov.Lanczos.Rounded.PackedOutput.tridiagonalMatrix_eq

Library · theorem

The diagonal and couplings read from storage are the same recurrence's tridiagonal matrix.

NLAlib.Krylov.Lanczos.Rounded.PackedOutput.tridiagonalMatrix_eq {K : Type} [Inhabited K]
  {dec : K → ℝ} {n cap q : ℕ} {z : Krylov.Lanczos.Rounded.Values n} {vs cs : List K}
  (h : Krylov.Lanczos.Rounded.PackedOutput dec cap z vs cs) (hq : q ≤ cap) {D : LanczosData n q}
  (ha : D.α = z.alpha) (hb : D.β = z.beta) :
  Krylov.Lanczos.tridiagonalMatrix dec cap cs q = D.tridiagonal

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Rounded.Ritz.