TorchLean API

FloatLib.Floats.Formats.Logarithmic.Configured.Runtime

Executable exact logarithmic operations #

Every value is zero or a signed integral power of the radix. Multiplication is the only arithmetic operation supplied; it is closed and exact because signs xor and exponents add. Addition and arbitrary real conversion would require rounding because integral powers of the radix are not closed under addition. Division by a nonzero value could subtract exponents exactly, but no division operation or zero-divisor policy is supplied.

@[inline]

Wrap a complete logarithmic code without conversion.

Instances For
    @[inline]

    Recover the complete logarithmic code without conversion.

    Instances For
      @[inline]

      Construct the unique zero code.

      Instances For
        @[inline]

        Construct the exact value (-1)^negative * radix^exponent.

        Instances For
          @[inline]
          noncomputable def FloatLib.Floats.ExecFloat.Logarithmic.toReal {radix : Numerics.Radix} (value : Logarithmic radix) :

          Decode a configured logarithmic value to its exact real meaning.

          Instances For
            @[inline]

            Exact multiplication of configured logarithmic values.

            Instances For