NLA-lib Explorer

NLAlib.Ops.BinaryQuantized.mixedModel_machine

Library · theorem

The quantizer gives mixed arithmetic error, with a largest-finite-result range. The selector law is a scalar rounding property, independent of any algorithm execution.

NLAlib.Ops.BinaryQuantized.mixedModel_machine (fmt : Float.Model.Format) {r : ℝ → ℤ}
  (hr : ∀ (x : ℝ), Computation.AbsRelErr 0 (1 / 2) x ↑(r x)) :
  Ops.MixedModel (2⁻¹ ^ fmt.mantissaBits) (2 ^ fmt.minExponent / 2) id
    (Ops.BinaryQuantized.machine fmt r) fun x ↦ |x| ≤ fmt.maxFinite

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.OpsBinaryFloat.