TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Operations.Classification.Classes

The ten binary classes #

classify_eq_iff characterizes every result by the existing descriptor predicates. The signed numerical classes retain the stored sign; the two NaN classes deliberately ignore sign and payload. The result type is shared with decimal classification.

@[simp]

Classification as signaling NaN is exactly the existing signaling predicate.

@[simp]

Classification as quiet NaN is exactly the existing quiet-NaN predicate.

@[simp]

Negative zero is a policy zero with the sign bit set; FNUZ has no such value.

@[simp]

Negative normal classification uses policy-aware normality and the stored negative sign.

@[simp]

Positive normal classification uses policy-aware normality and the stored positive sign.