TorchLean API

FloatLib.Floats.Formats.OCP.MX.E8M0.Semantics

Numerical semantics of E8M0 scaling #

E8M0 is an exponent-only scale rather than a sign/exponent/fraction float. Its runtime carrier remains one byte. The contracts in this module relate that byte and the existing exact decoders to the same NumericalSystem and Operation interfaces used by ordinary floats and other numerical representations.

E8M0 codes interpreted as exact positive dyadic scales, with 0xff denoting NaN.

Instances For
    @[reducible, inline]

    An E8M0 code with an erased proof of its exact finite scale.

    Instances For

      Finite E8M0 representation is exactly successful dyadic decoding.

      Recover successful E8M0 decoding from a finite representation proof.

      @[inline]

      Apply the exponent carried by an E8M0 scale to an exact dyadic.

      Instances For