NLA-lib Explorer

NLAlib.isRoundingOf_roundNearest

Library · theorem

Rounding to nearest is a rounding: rounding to nearest on the grid of t-bit binary numbers with unbounded exponent (Real.roundNearest) returns a rounding of every real a in the sense of NLAlib.IsRoundingOf, with unit roundoff 2^{-t}, floor 0 and every range \Omega. The standard-model rounding is applied to real and imaginary parts as complex arithmetic does. [Higham2002, Theorem 2.2].

NLAlib.isRoundingOf_roundNearest (t : ℕ) (Ω a : ℝ) :
  IsRoundingOf (2⁻¹ ^ t) 0 Ω a (Real.roundNearest t a)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.EntrywiseRounding.