TorchLean API

FloatLib.Floats.Formats.Block.Configured.Runtime

Executable configured shared-scale blocks #

These operations expose complete storage, exact decoding, and contextual quantization at a caller-selected exponent.

The caller supplies the shared exponent, so different calibration strategies can use the same quantizer. Exponents and significands are unbounded integers; the vector type fixes the lane count.

@[inline]

Wrap a complete shared-scale block code without conversion.

Instances For
    @[inline]

    Recover the complete shared-scale block code without conversion.

    Instances For
      @[inline]
      def FloatLib.Floats.ExecFloat.SharedScale.ofComponents {lanes : } (exponent : ) (significands : Vector lanes) :

      Construct a block from one exponent and exactly lanes stored significands.

      Instances For
        @[inline]

        Stored shared binary exponent.

        Instances For
          @[inline]

          Stored integer significands.

          Instances For
            @[inline]

            Decode every lane to its exact rational value.

            Instances For
              @[inline]
              def FloatLib.Floats.ExecFloat.SharedScale.quantizeAt {lanes : } (exponent : ) (input : Vector lanes) :

              Quantize every lane at an explicitly supplied shared exponent.

              Instances For