TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.StaticByte.Conversion.Runtime

Static-byte exact conversion runtime #

Nominal families backed by StaticByte.Family decode through SignedRat and use the shared binary conversion policy and numerical contract.

The adapter uses the family descriptor and byte codec, independently of its arithmetic kernels. Typeclass installation lives in Conversion.Instances; correctness equations live in Conversion.Proof.

@[inline]

Decode a static-byte value into the signed-rational domain, keeping the sign of zero.

Instances For
    @[inline]

    Pack a rounded binary model into the nominal family's direct byte carrier.

    Instances For
      @[inline]

      Quantize one finite signed rational into the nominal static-byte destination.

      Instances For
        @[inline]

        Apply the explicit infinity policy to a nominal static-byte destination.

        Instances For
          @[inline]

          Apply the explicit exceptional-value policy to a nominal static-byte destination.

          Instances For
            @[instance_reducible]

            Every nominal static-byte binary source decodes exactly through SignedRat.