TorchLean API

FloatLib.Floats.Formats.Codebook.Arithmetic.Runtime

Executable arithmetic for catalog codebooks #

The illustrative catalog encodings have direct executable bit kernels. Refinement against their numerical systems is proved in Arithmetic.Proof.

@[inline]

Exact additive inverse for the one-bit bipolar codebook.

Instances For
    @[inline]

    Exact multiplication for the one-bit bipolar codebook.

    Instances For
      @[inline]

      Exact ternary negation, rejecting the reserved word.

      Instances For
        @[inline]

        Exact ternary multiplication, returning none if either operand is the reserved word.

        Instances For