TorchLean API

FloatLib.Floats.Formats.Posit.Configured.Logarithm.Runtime

Configured base-two and base-ten posit logarithms #

The selected carrier reuses the exact model logarithm through its lawful codec. This preserves the once-rounded result and all exceptional-input behavior across packed words and wide carriers.

@[inline]

Correctly rounded base-two logarithm; NaR and nonpositive inputs produce NaR.

Instances For
    @[inline]

    Correctly rounded base-ten logarithm; NaR and nonpositive inputs produce NaR.

    Instances For
      @[inline]

      Base-two logarithm of exact 1 + x, with one final rounding.

      Instances For
        @[inline]

        Base-ten logarithm of exact 1 + x, with one final rounding.

        Instances For