TorchLean API

FloatLib.Numerics.Enclosure.Interval.Fused

Interval multiply-add with one outward rounding #

The product bounds and the addend are combined before rounding either endpoint. A finite endpoint format can therefore enclose a small final result even when the intermediate product would exceed its range. These operations enclose the real expression x * y + z.

Exact endpoint bounds for a product followed by addition.

Instances For
    def FloatLib.Numerics.Interval.fma? {α : Type u_1} {β : Type u_2} [Field β] [LinearOrder β] (R : OutwardRounding α β) (I J K : Interval α) :

    Enclose x * y + z, rounding only the final lower and upper bounds.

    Decoding or final endpoint overflow returns none. No representable intermediate product is required.

    Instances For

      Integer multiply-add, aligning the addend before the two outward-rounded shifts.

      Instances For