TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Arithmetic.Nearest

Nearest-even binary arithmetic kernels #

The six nearest-even kernels behind the default Model.add, Model.sub, Model.mul, Model.div, Model.sqrt, and Model.fma call the structural dispatchers selected for a validated format descriptor. They sit below the directed and status kernels, which reuse them for nearest-even rounding, and the public operations in Arithmetic.Runtime select among the three.

Automatically dispatched nearest-even addition for any validated format descriptor.

Instances For

    Automatically dispatched nearest-even subtraction for any validated format descriptor.

    Instances For

      Automatically dispatched nearest-even multiplication for any validated format descriptor.

      Instances For

        Automatically dispatched nearest-even division for any validated format descriptor.

        Instances For

          Automatically dispatched nearest-even square root for any validated format descriptor.

          Instances For

            Automatically dispatched nearest-even fused multiply-add for any validated format descriptor.

            Instances For