NLA-lib Explorer

NLAlib.reorthSteps_eq_findIdx

Library · theorem

The stored-output prefix length is the first index failing its strict test, or the cap.

NLAlib.reorthSteps_eq_findIdx (τ : ℝ) (ν β : ℕ → ℝ) (q : ℕ) :
  reorthSteps τ ν β q = List.findIdx (fun j ↦ !decide (τ * ν j < β (j + 1))) (List.range q)

Full source on GitHub

Import NLAlib.Krylov.FinitePrecision.LanczosReorthPrefix.