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.

Certified logarithm enclosures decide boundary comparisons before exact algebraic fallback. Small integer exponents use direct exact rational arithmetic before the single final rounding. Fallback cost depends on the numerical numerator and denominator of the decoded exponent; there is no resource-bound completion guarantee.

@[inline]

Exactly rounded power. NaR propagates, zero requires a positive exponent, and negative bases require integral exponents. Inconclusive enclosures use exact comparison fallback.

Instances For
    @[inline]

    Exactly rounded base-two exponential; NaR propagates. Hard fallback cases can be expensive.

    Instances For
      @[inline]

      Exactly rounded base-ten exponential; NaR propagates. Hard fallback cases can be expensive.

      Instances For
        @[inline]

        Base-two exponential minus one, with a single rounding after subtraction; NaR propagates.

        Instances For
          @[inline]

          Base-ten exponential minus one, with a single rounding after subtraction; NaR propagates.

          Instances For