TorchLean API

FloatLib.Floats.Formats.Block.Configured.Conversion.Runtime

Shared-scale block conversion runtime #

Conversion takes the common binary exponent as an explicit Int context and rounds each lane to the corresponding grid. Conversion.Instances installs this contextual quantizer without a DefaultQuantizer instance.

@[inline]

Conversion status records whether any lane changed at the selected shared scale.

Instances For
    @[inline]

    Quantize a complete block observation at an explicitly supplied shared exponent.

    Instances For

      Relational shared-scale conversion contract.

      Finite success must satisfy the lane-wise nearest-even QuantizesAt relation. Non-finite inputs are rejected because this unbounded block family has no corresponding codes.

      Instances For
        @[instance_reducible]

        Shared-scale values decode to their exact rational vector.