NLA-lib Explorer

NLAlib.Krylov.Lanczos.Reorth.PassOut.dec_vec_eq_sub_sum

Library · theorem

With zero axpy error the updated vector is exactly the input minus all projections.

NLAlib.Krylov.Lanczos.Reorth.PassOut.dec_vec_eq_sub_sum {K : Type} [Inhabited K] {dec : K → ℝ}
  {n k : ℕ} {qs ws ws' hs : List K} (h : Krylov.Lanczos.Reorth.PassOut dec 0 0 n k qs ws ws' hs)
  (i : Fin n) :
  dec (Ops.vec ws' ↑i) =
    dec (Ops.vec ws ↑i) - ∑ j ∈ Finset.range k, dec (Ops.vec hs j) * dec (Ops.vec qs (j * n + ↑i))

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Reorth.SweepExact.