TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Operations.Classification.Semantics

Numerical meaning of binary classification #

For a finite value, normality means its magnitude reaches 2 ^ minNormalExponent. Subnormals have positive magnitude below that threshold. These equivalences hold for every descriptor, including arbitrary valid biases and finite encodings with normal all-ones exponents.

The exact magnitude of any finite word, expressed in its stored magnitude fields.

A decoded finite value is normal exactly when its magnitude reaches the normal threshold.

Zero classification of a decoded value is exactly numerical zero.

Subnormal classification is precisely positive magnitude below the normal threshold.

Normality depends on the exact finite denotation, with NaNs and infinities excluded.

A subnormal is finite, with magnitude strictly between zero and the normal threshold.

Real-valued normality uses the declared bias, independently of encoding policy.

Real-valued subnormality is strict positive magnitude below the normal threshold.