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, and the rounding direction is an optional argument.
Correctly rounded sum of configured values in mode (nearest-even by default).
Every operand is decoded exactly, the complete sum is accumulated without intermediate rounding,
and the result is rounded once. With status := true the result also carries the IEEE exception
indicators and the ternary value. The value form packs the value-only descriptor-model sum, which
computes no exception indicators.
Instances For
List entry point for correctly rounded configured summation, with the options of sum.
Instances For
Correctly rounded dot product of configured values in mode (nearest-even by default).
Products and their sum are exact until one final rounding. Unequal lengths return
ReductionError.lengthMismatch, so no pair is silently dropped. With status := true a
successful result also carries the IEEE exception indicators and the ternary value. The value
form packs the value-only descriptor-model dot product, which computes no exception indicators.
Instances For
List entry point for a correctly rounded configured dot product, with the options of dot.