Package it.unimi.dsi.test
Class XorShiftPoly116
- java.lang.Object
-
- it.unimi.dsi.test.XorShiftPoly116
-
public class XorShiftPoly116 extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intBITSThe number of bits of state of the generator.static java.math.BigInteger[]cofactorAn array of cofactors.static java.math.BigInteger[]factorFactors of 2116 − - 1.static intnumCofactorsThe actual number of valid entries incofactor.static java.math.BigIntegertwoToBitsMinus1The period of the generator (2116 − 1).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] arg)static voidmPow(java.math.BigInteger e)Computes the power to a given exponent, given the quadratures.
-
-
-
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 (2116 − 1).
-
factor
public static final java.math.BigInteger[] factor
Factors of 2116 − - 1.
-
cofactor
public static final java.math.BigInteger[] cofactor
An array of cofactors. Entry 0 ≤i<numCofactorscontainstwoToBitsMinus1divided byfactor[i]. Note that some entries can benullifBITSis less then 4096.
-
numCofactors
public static int numCofactors
The actual number of valid entries incofactor.
-
-
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)
-
-