NLA-lib Explorer

NLAlib.Krylov.Lanczos.tridiagonalMatrix

Library · def

Decode a symmetric tridiagonal prefix from the actual stored coefficient words. Alpha starts at zero and beta at cap; q \le \mathrm{cap} admits every referenced coefficient. The same prefix layout is used by ordinary and fully reorthogonalized Lanczos.

NLAlib.Krylov.Lanczos.tridiagonalMatrix {K : Type} [Inhabited K] (dec : K → ℝ) (cap : ℕ)
  (cs : List K) (q : ℕ) : Matrix (Fin q) (Fin q) ℝ

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Spec.