24package umontreal.ssj.util.multidimsort;
54 super(batchExponents);
55 ej =
new int[this.dimension];
67 if (batchExponents ==
null)
68 throw new NullPointerException(
"batchExponents is null");
74 batchProduct = 1 << e;
75 for (
int j = 0; j < dimension; ++j) {
76 ej[j] = (int) Math.ceil(e * batchExponents[j]);
78 batchNumbers[j] = 1 << ej[j];
void setBatchNumbers(int n)
For a number of objects and a predefined vector of proportion exponents , computes and sets the corr...
int[] getBitNumbers()
Returns the current vector of integers .
BatchSortPow2(double[] batchExponents)
Constructs a BatchSortPow2 that will use proportion exponents in batchExponents, which must contain n...
BatchSort(int[] batchNumbers)
This interface is an extension (or variant) of the Comparable interface in Java.