Class XorShiftPoly116

java.lang.Object
it.unimi.dsi.test.XorShiftPoly116

public class XorShiftPoly116 extends Object
  • Field Details

    • BITS

      public static final int BITS
      The number of bits of state of the generator.
      See Also:
    • twoToBitsMinus1

      public static BigInteger twoToBitsMinus1
      The period of the generator (2116 − 1).
    • factor

      public static final BigInteger[] factor
      Factors of 2116 − - 1.
    • cofactor

      public static final BigInteger[] cofactor
      An array of cofactors. Entry 0 ≤ i < numCofactors contains twoToBitsMinus1 divided by factor[i]. Note that some entries can be null if BITS is less then 4096.
    • numCofactors

      public static int numCofactors
      The actual number of valid entries in cofactor.
  • Method Details

    • mPow

      public static void mPow(BigInteger e)
      Computes the power to a given exponent, given the quadratures.
      Parameters:
      e - an exponent smaller than or equal to 2BITS.
    • main

      public static void main(String[] arg)