Class FastMath.Split

java.lang.Object
org.apache.commons.math3.util.FastMath.Split
Enclosing class:
FastMath

private static class FastMath.Split extends Object
Class operator on double numbers split into one 26 bits number and one 27 bits number.
  • Field Details

    • NAN

      public static final FastMath.Split NAN
      Split version of NaN.
    • POSITIVE_INFINITY

      public static final FastMath.Split POSITIVE_INFINITY
      Split version of positive infinity.
    • NEGATIVE_INFINITY

      public static final FastMath.Split NEGATIVE_INFINITY
      Split version of negative infinity.
    • full

      private final double full
      Full number.
    • high

      private final double high
      High order bits.
    • low

      private final double low
      Low order bits.
  • Constructor Details

    • Split

      Split(double x)
      Simple constructor.
      Parameters:
      x - number to split
    • Split

      Split(double high, double low)
      Simple constructor.
      Parameters:
      high - high order bits
      low - low order bits
    • Split

      Split(double full, double high, double low)
      Simple constructor.
      Parameters:
      full - full number
      high - high order bits
      low - low order bits
  • Method Details

    • multiply

      public FastMath.Split multiply(FastMath.Split b)
      Multiply the instance by another one.
      Parameters:
      b - other instance to multiply by
      Returns:
      product
    • reciprocal

      public FastMath.Split reciprocal()
      Compute the reciprocal of the instance.
      Returns:
      reciprocal of the instance
    • pow

      private FastMath.Split pow(long e)
      Computes this^e.
      Parameters:
      e - exponent (beware, here it MUST be > 0; the only exclusion is Long.MIN_VALUE)
      Returns:
      d^e, split in high and low bits
      Since:
      3.6