TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Configured.Square

Squaring configured binary values #

Word and model carriers transport the unary square kernel through their lossless codec. Byte tables, two-word carriers, and limb carriers keep their selected multiplication kernel. Both routes agree with configured multiplication.

@[inline]

Square with one nearest-even rounding, retaining the descriptor's full encoding policy.

Instances For

    Squaring preserves the complete result of the selected multiplication capability.

    @[simp]

    Decoding a configured square gives the model square of the decoded value.