NLA-lib Explorer

NLAlib.Krylov.Lanczos.Output.tridiagonalMatrix_eq

Library · theorem

The actual stored coefficients form the compression of the input Hermitian matrix to the actual stored basis prefix. The identity holds for zero input and after exact breakdown; orthonormality is a separate grade-bounded fact. [Saad2003, Theorem 6.19].

NLAlib.Krylov.Lanczos.Output.tridiagonalMatrix_eq {K : Type} [Inhabited K] {dec : K → ℝ}
  {n cap q : ℕ} {A : Matrix (Fin n) (Fin n) ℝ} {b : Fin n → ℝ} {vs cs : List K}
  (h : Krylov.Lanczos.Output dec A b cap vs cs) (hA : A.IsHermitian) (hq : q ≤ cap) :
  Krylov.Lanczos.tridiagonalMatrix dec cap cs q =
    (Krylov.Lanczos.basisMatrix dec n vs q)ᴴ * A * Krylov.Lanczos.basisMatrix dec n vs q

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Spec.