TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Configured.Reduction.Runtime

Correctly rounded reductions for configured binary values #

These functions lift the format-generic reduction kernel to the ordinary configured ExecFloat.Binary carrier. Operands are decoded into the exact model, reduced there, and the single final result is packed back into the configured carrier.

For finite operands, sum forms the exact mathematical sum and rounds once. dot forms every product exactly, sums those products exactly, and rounds once. The configured type fixes the source and destination format, while the rounding direction remains an explicit argument.

Correctly sum configured values and return the result with IEEE exception indicators.

Every operand is decoded exactly, the complete sum is accumulated without intermediate rounding, and the result is rounded once in rounding.

Instances For
    @[inline]

    List entry point for correctly rounded configured summation with status.

    Instances For

      Correctly compute a configured dot product and return IEEE exception indicators.

      Products and their sum are exact until one final rounding. Unequal lengths return ReductionError.lengthMismatch; no pair is silently discarded.

      Instances For
        @[inline]

        List entry point for a correctly rounded configured dot product with status.

        Instances For