TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Spec.SquareRoot

Square-root specification #

The reference operation is descriptor-aware for every validated FloatFormat. The model bridge below is intentionally restricted to conventional IEEE descriptors.

@[inline]

Descriptor-aware square root rounded to nearest with ties to even.

Instances For

    For a positive finite conventional-IEEE value, the descriptor-aware square root agrees with the established unpacked-model result used by the binary32 and binary64 refinements.