/external/guava/guava-tests/benchmark/com/google/common/math/ |
D | IntMathBenchmark.java | 38 private static int[] binomial = new int[ARRAY_SIZE]; field in IntMathBenchmark 48 binomial[i] = RANDOM_SOURCE.nextInt(factorial[i] + 1); in setUp() 91 @Benchmark int binomial(int reps) { in binomial() method in IntMathBenchmark 95 tmp += IntMath.binomial(factorial[j], binomial[j]); in binomial()
|
D | BigIntegerMathBenchmark.java | 107 @Benchmark int binomial(int reps) { in binomial() method in BigIntegerMathBenchmark 111 tmp += BigIntegerMath.binomial(factorials[j], binomials[j]).intValue(); in binomial()
|
D | LongMathBenchmark.java | 94 @Benchmark int binomial(int reps) { in binomial() method in LongMathBenchmark 98 tmp += LongMath.binomial(binomialArguments[j][0], binomialArguments[j][1]); in binomial()
|
D | ApacheBenchmark.java | 59 return LongMath.binomial(n, k); in binomialCoefficient()
|
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/ |
D | LongMathTest.java | 125 BigInteger expectedBig = BigIntegerMath.binomial(n, k); in testBinomial() 127 assertEquals(expectedLong, LongMath.binomial(n, k)); in testBinomial() 135 LongMath.binomial(n, -1); in testBinomialOutside() 139 LongMath.binomial(n, n + 1); in testBinomialOutside() 148 LongMath.binomial(n, 0); in testBinomialNegative()
|
D | BigIntegerMathTest.java | 181 assertEquals(expected, BigIntegerMath.binomial(n, k)); in runBinomialTest() 189 BigIntegerMath.binomial(n, -1); in testBinomialOutside() 193 BigIntegerMath.binomial(n, n + 1); in testBinomialOutside()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | LongMathTest.java | 108 assertTrue(fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k], k))); in testConstantsBiggestBinomials() 110 || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k))); in testConstantsBiggestBinomials() 115 assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k))); in testConstantsBiggestBinomials() 563 BigInteger expectedBig = BigIntegerMath.binomial(n, k); in testBinomial() 565 assertEquals(expectedLong, LongMath.binomial(n, k)); in testBinomial() 576 assertEquals(BigIntegerMath.binomial(n, k).longValue(), LongMath.binomial(n, k)); in testBinomial_exhaustiveNotOverflowing() 584 LongMath.binomial(n, -1); in testBinomialOutside() 588 LongMath.binomial(n, n + 1); in testBinomialOutside() 597 LongMath.binomial(n, 0); in testBinomialNegative()
|
D | IntMathTest.java | 83 assertTrue(fitsInInt(BigIntegerMath.binomial(IntMath.biggestBinomials[k], k))); in testConstantsBiggestBinomials() 85 || !fitsInInt(BigIntegerMath.binomial(IntMath.biggestBinomials[k] + 1, k))); in testConstantsBiggestBinomials() 90 fitsInInt(BigIntegerMath.binomial( in testConstantsBiggestBinomials() 485 BigInteger expectedBig = BigIntegerMath.binomial(n, k); in testBinomial() 487 assertEquals(expectedInt, IntMath.binomial(n, k)); in testBinomial() 496 IntMath.binomial(n, -1); in testBinomialOutside() 500 IntMath.binomial(n, n + 1); in testBinomialOutside() 510 IntMath.binomial(n, 0); in testBinomialNegative()
|
D | BigIntegerMathTest.java | 442 assertEquals(expected, BigIntegerMath.binomial(n, k)); 450 BigIntegerMath.binomial(n, -1); 454 BigIntegerMath.binomial(n, n + 1);
|
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
D | BigIntegerMath.java | 217 public static BigInteger binomial(int n, int k) { in binomial() method in BigIntegerMath 225 return BigInteger.valueOf(LongMath.binomial(n, k)); in binomial()
|
D | LongMath.java | 203 public static long binomial(int n, int k) { in binomial() method in LongMath
|
/external/guava/guava/src/com/google/common/collect/ |
D | Collections2.java | 25 import static com.google.common.math.LongMath.binomial; 441 permutations *= binomial(n, r); in calculateSize() 450 permutations *= binomial(n, r); in calculateSize()
|
/external/llvm/test/CodeGen/X86/ |
D | phys_subreg_coalesce-2.ll | 5 define i32 @binomial(i32 %n, i32 %k) nounwind {
|
D | pr2659.ll | 7 define i32 @binomial(i32 %n, i32 %k) nounwind {
|
/external/guava/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 400 public static BigInteger binomial(int n, int k) { in binomial() method in BigIntegerMath 408 return BigInteger.valueOf(LongMath.binomial(n, k)); in binomial()
|
D | IntMath.java | 524 public static int binomial(int n, int k) {
|
D | LongMath.java | 648 public static long binomial(int n, int k) {
|
/external/libcxx/include/ |
D | random | 4012 // Reference: Kemp, C.D. (1986). `A modal method for generating binomial
|