TorchLean API

FloatLib.Floats.Formats.Posit.Configured.Algebraic.Runtime

Configured posit algebraic functions #

These functions use the exact rational algebraic kernels through the selected carrier's model codec. Storage selection does not introduce additional rounding. NaR and invalid real domains have the same behavior as the model operations.

@[inline]

Reciprocal square root, rounded once; nonpositive inputs and NaR produce NaR.

Instances For
    @[inline]

    Euclidean hypotenuse, rounded once after an exact sum of squares; NaR propagates.

    Instances For
      @[inline]

      Fused triple multiplication, with one final rounding and NaR propagation.

      Instances For
        @[inline]

        Integer root, rounded once, taking the signed real root for odd degrees. Degree zero, even roots of negative inputs, negative-degree roots of zero, and NaR inputs produce NaR.

        Instances For
          @[inline]

          Fixed integer power, rounded once; NaR and zero to negative powers produce NaR.

          Instances For
            @[inline]

            Compound (1 + x) ^ n, rounding only the final result. NaR propagates, and x = -1 with negative exponent produces NaR. Exponent zero gives one on every finite input.

            Instances For