Shared exponent selection for concrete OCP MX blocks #
The selected exponent is the binade exponent of the largest input magnitude minus the largest element power-of-two exponent. E8M0 bounds every scale that reaches element quantization. The binade theorem reuses the format-independent proof of the executable rational logarithm.
Saturating E8M0 encoding decodes to the clamped mathematical exponent.
The largest input magnitude is nonnegative, including the all-zero block.
Every lane is bounded by the magnitude used for standard scale selection.
For a nonzero input block, the requested scale positions the largest magnitude between the element's largest positive power of two and twice that value, before E8M0 range handling.
Out-of-range upper scales propagate a block NaN instead of constructing an invalid exponent.
Finite scale selection clamps only at the lower E8M0 boundary.