NLA-lib Explorer

NLAlib.Krylov.Lanczos.Reorth.readback

Library · theorem

A completed shared prefix and raw-norm suffix give actual packed output reads and the existing exact reorthogonalized recurrence for Hermitian matrices.

NLAlib.Krylov.Lanczos.Reorth.readback {K : Type} [Inhabited K] {dec : K → ℝ} {n cap : ℕ}
  {A : Matrix (Fin n) (Fin n) ℝ} {b : Fin n → ℝ} {V C : ℕ × ℕ} {s : Ops.Store K}
  (h : Krylov.Lanczos.Prefix dec A b cap cap V C s) (hA : A.IsHermitian)
  (hν :
    ∀ j < cap,
      Krylov.Lanczos.StoresCell dec (C.1, C.2 + 2 * cap + 2 + j)
        (Krylov.Lanczos.Reorth.nuValue A b cap j) s) :
  ∃ vs cs,
    s.readBlock V.1 V.2 ((cap + 1) * n) = some vs ∧
      s.readBlock C.1 C.2 (3 * cap + 2) = some cs ∧ Krylov.Lanczos.Reorth.Output dec A b cap vs cs

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Reorth.State.