TorchLean API

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

Configured once-rounded powers and exponentials #

These codec adapters forward to the exactly rounded model implementations of pow, exp2, exp10, and their fused minus-one forms. Carrier selection adds no rounding.

The model kernels decide equality with a rounding boundary exactly and separate the other cases with certified logarithm enclosures. They raise the base's root to the exponent's numerator only by exponentiation capped against the boundary, so large exponents create no large integers. Small integer exponents use exact rational arithmetic before the single final rounding.

@[inline]

Exactly rounded power. NaR propagates, zero requires a positive exponent, and negative bases require integral exponents.

Instances For
    @[inline]

    Exactly rounded base-two exponential. NaR propagates.

    Instances For
      @[inline]

      Exactly rounded base-ten exponential. NaR propagates.

      Instances For
        @[inline]

        Base-two exponential minus one, rounded once after the subtraction. NaR propagates.

        Instances For
          @[inline]

          Base-ten exponential minus one, rounded once after the subtraction. NaR propagates.

          Instances For