NLA-lib Explorer

NLAlib.Computation.FixedPoint.toFin

Library · def

Encode a bounded signed integer by its offset from the lower endpoint.

NLAlib.Computation.FixedPoint.toFin {limit : ℕ} (w : Computation.FixedPoint limit) :
  Fin (2 * limit + 1)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.FixedPoint.