NLA-lib Explorer

NLAlib.Krylov.Lanczos.basisMatrix

Library · def

Decode the first q columns of a column-major stored Lanczos basis with vector length n. This is a packing view of the actual words, with the existing total Ops.vec convention for missing entries. Output contracts identify every admitted prefix with the canonical basis.

NLAlib.Krylov.Lanczos.basisMatrix {K : Type} [Inhabited K] (dec : K → ℝ) (n : ℕ) (vs : List K)
  (q : ℕ) : Matrix (Fin n) (Fin q) ℝ

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Spec.