TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Analysis.BFloat16

Bfloat16 consequences of the generic theory #

The general format-rounding theorem specializes to two useful bfloat16 facts. Widening to binary32 is exact because both formats have the same normal exponent range and binary32 adds fraction bits. Addition performs exact dyadic addition followed by one bfloat16 nearest-even rounding step.

@[reducible, inline]

Bfloat16 rounding viewed as a real function.

Instances For

    Finite bfloat16 addition is exact real addition followed by one nearest-even rounding step.