NLA-lib Explorer

NLAlib.blockIndex

Library · def

The index of position i of the range r = (lo, d) in \{0, \dots, n\}: \min(lo + i, n) (clamped past the end).

NLAlib.blockIndex (n : ℕ) (r : ℕ × ℕ) (i : Fin r.2) : Fin (n + 1)

Full source on GitHub

Import NLAlib.Matrix.QRIteration.HessenbergDeflation.