Class XorShiftPoly928


  • public class XorShiftPoly928
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BITS
      The number of bits of state of the generator.
      static java.math.BigInteger[] cofactor
      An array of cofactors.
      static java.math.BigInteger[] factor
      Factors of 2928 − - 1.
      static int numCofactors
      The actual number of valid entries in cofactor.
      static java.math.BigInteger twoToBitsMinus1
      The period of the generator (2928 − 1).
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] arg)  
      static void mPow​(java.math.BigInteger e)
      Computes the power to a given exponent, given the quadratures.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BITS

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

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

        public static final java.math.BigInteger[] factor
        Factors of 2928 − - 1.
      • cofactor

        public static final java.math.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 Detail

      • mPow

        public static void mPow​(java.math.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​(java.lang.String[] arg)