/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
D | Fraction.java | 87 private final int denominator; field in Fraction 189 this.denominator = 1; in Fraction() 232 this.denominator = (int) q2; in Fraction() 235 this.denominator = (int) q1; in Fraction() 282 this.denominator = den; in Fraction() 306 long nOd = ((long) numerator) * object.denominator; in compareTo() 307 long dOn = ((long) denominator) * object.numerator; in compareTo() 318 return (double)numerator / (double)denominator; in doubleValue() 340 (denominator == rhs.denominator); in equals() 360 return denominator; in getDenominator() [all …]
|
D | BigFraction.java | 92 private final BigInteger denominator; field in BigFraction 127 denominator = BigInteger.ONE; in BigFraction() 145 denominator = den; in BigFraction() 199 denominator = BigInteger.ZERO.flipBit(-k); in BigFraction() 202 denominator = BigInteger.ONE; in BigFraction() 282 denominator = BigInteger.ONE; in BigFraction() 327 denominator = BigInteger.valueOf(q2); in BigFraction() 330 denominator = BigInteger.valueOf(q1); in BigFraction() 431 final int denominator) { in getReducedFraction() argument 436 return new BigFraction(numerator, denominator); in getReducedFraction() [all …]
|
/external/v8/src/ |
D | bignum-dtoa.cc | 36 Bignum* denominator, 46 Bignum* numerator, Bignum* denominator, 50 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator, 56 Bignum* numerator, Bignum* denominator, 63 Bignum* numerator, Bignum* denominator, 93 Bignum denominator; in BignumDtoa() local 103 &numerator, &denominator, in BignumDtoa() 107 &numerator, &denominator, in BignumDtoa() 113 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa() 119 &numerator, &denominator, in BignumDtoa() [all …]
|
/external/tensorflow/tensorflow/stream_executor/lib/ |
D | mathutil.h | 36 IntegralType denominator) { in CeilOfRatio() argument 37 return CeilOrFloorOfRatio<IntegralType, true>(numerator, denominator); in CeilOfRatio() 41 IntegralType denominator) { in FloorOfRatio() argument 42 return CeilOrFloorOfRatio<IntegralType, false>(numerator, denominator); in FloorOfRatio() 46 IntegralType denominator); 59 IntegralType denominator) { in CeilOrFloorOfRatio() argument 62 assert(denominator != 0); in CeilOrFloorOfRatio() 67 denominator != -1); in CeilOrFloorOfRatio() 69 const IntegralType rounded_toward_zero = numerator / denominator; in CeilOrFloorOfRatio() 70 const IntegralType intermediate_product = rounded_toward_zero * denominator; in CeilOrFloorOfRatio() [all …]
|
/external/python/cpython3/Lib/ |
D | fractions.py | 84 def __new__(cls, numerator=0, denominator=None, *, _normalize=True): argument 117 if denominator is None: 125 self._denominator = numerator.denominator 142 denominator = int(denom) 144 denominator = 1 149 denominator *= scale 156 denominator *= 10**-exp 164 elif type(numerator) is int is type(denominator): 168 isinstance(denominator, numbers.Rational)): 169 numerator, denominator = ( [all …]
|
/external/python/cpython2/Lib/ |
D | fractions.py | 68 def __new__(cls, numerator=0, denominator=None): argument 101 if denominator is None: 104 self._denominator = numerator.denominator 129 denominator = int(denom) 131 denominator = 1 136 denominator *= scale 143 denominator *= 10**-exp 152 isinstance(denominator, Rational)): 153 numerator, denominator = ( 154 numerator.numerator * denominator.denominator, [all …]
|
/external/tensorflow/tensorflow/core/lib/math/ |
D | math_util.h | 52 IntegralType denominator) { in CeilOfRatio() argument 53 return CeilOrFloorOfRatio<IntegralType, true>(numerator, denominator); in CeilOfRatio() 57 IntegralType denominator) { in FloorOfRatio() argument 58 return CeilOrFloorOfRatio<IntegralType, false>(numerator, denominator); in FloorOfRatio() 63 IntegralType denominator); 99 IntegralType denominator) { in CeilOrFloorOfRatio() argument 100 DCHECK_NE(0, denominator) << "Division by zero is not supported."; in CeilOrFloorOfRatio() 102 const IntegralType rounded_toward_zero = numerator / denominator; in CeilOrFloorOfRatio() 103 const IntegralType intermediate_product = rounded_toward_zero * denominator; in CeilOrFloorOfRatio() 118 ((denominator > 0 && numerator > intermediate_product) || in CeilOrFloorOfRatio() [all …]
|
D | math_util_test.cc | 38 const IntegralType denominator = test_data[i][1]; in TestCeilOfRatio() local 42 IntegralType floor_1 = MathUtil::FloorOfRatio(numerator, denominator); in TestCeilOfRatio() 44 numerator, denominator); in TestCeilOfRatio() 48 << ", denominator = " << denominator << " " in TestCeilOfRatio() 50 IntegralType ceil_1 = MathUtil::CeilOfRatio(numerator, denominator); in TestCeilOfRatio() 52 numerator, denominator); in TestCeilOfRatio() 56 << ", denominator = " << denominator << " " in TestCeilOfRatio() 146 IntegralType denominator) { in CeilOfRatioDenomMinusOne() argument 148 return (numerator + denominator - kOne) / denominator; in CeilOfRatioDenomMinusOne() 155 IntegralType denominator) { in FloorOfRatioByDivision() argument [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
D | LongMath.java | 233 long denominator = 1; in binomial() local 247 denominator *= i; in binomial() 252 result = multiplyFraction(result, numerator, denominator); in binomial() 254 denominator = i; in binomial() 258 return multiplyFraction(result, numerator, denominator); in binomial() 266 static long multiplyFraction(long x, long numerator, long denominator) { in multiplyFraction() argument 268 return numerator / denominator; in multiplyFraction() 270 long commonDivisor = gcd(x, denominator); in multiplyFraction() 272 denominator /= commonDivisor; in multiplyFraction() 275 return x * (numerator / denominator); in multiplyFraction()
|
/external/icu/icu4c/source/i18n/ |
D | gregoimp.cpp | 25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument 27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument 32 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 35 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument 38 quotient = uprv_floor(numerator / denominator); in floorDivide() 39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
|
D | gregoimp.h | 41 static int32_t floorDivide(int32_t numerator, int32_t denominator); 52 static int64_t floorDivide(int64_t numerator, int64_t denominator); 63 static inline double floorDivide(double numerator, double denominator); 80 static int32_t floorDivide(double numerator, int32_t denominator, 267 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument 268 return uprv_floor(numerator / denominator); in floorDivide()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Grego.java | 185 public static long floorDivide(long numerator, long denominator) { in floorDivide() argument 189 numerator / denominator : in floorDivide() 190 ((numerator + 1) / denominator) - 1; in floorDivide() 193 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() argument 195 remainder[0] = numerator % denominator; in floorDivide() 196 return numerator / denominator; in floorDivide() 198 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide() 199 remainder[0] = numerator - (quotient * denominator); in floorDivide()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Grego.java | 183 public static long floorDivide(long numerator, long denominator) { in floorDivide() argument 187 numerator / denominator : in floorDivide() 188 ((numerator + 1) / denominator) - 1; in floorDivide() 191 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() argument 193 remainder[0] = numerator % denominator; in floorDivide() 194 return numerator / denominator; in floorDivide() 196 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide() 197 remainder[0] = numerator - (quotient * denominator); in floorDivide()
|
/external/libtextclassifier/util/math/ |
D | softmax.cc | 43 float denominator = 1.0f; // Contribution of i == label. in ComputeSoftmaxProbability() local 67 denominator += VeryFastExp(delta_score); in ComputeSoftmaxProbability() 69 return 1.0f / denominator; in ComputeSoftmaxProbability() 88 float denominator = 0; in ComputeSoftmax() local 95 denominator += exp_score; in ComputeSoftmax() 99 softmax.push_back(exp_scores[i] / denominator); in ComputeSoftmax()
|
/external/clang/test/CodeGen/ |
D | exceptions-seh.c | 10 void try_body(int numerator, int denominator, int *myres) { in try_body() argument 11 *myres = numerator / denominator; in try_body() 18 int safe_div(int numerator, int denominator, int *res) { in safe_div() argument 22 try_body(numerator, denominator, &myres); in safe_div()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | int128.cc | 101 uint128 denominator = divisor; in DivModImpl() local 106 int shift = Fls128(dividend) - Fls128(denominator); in DivModImpl() 107 denominator <<= shift; in DivModImpl() 113 if (dividend >= denominator) { in DivModImpl() 114 dividend -= denominator; in DivModImpl() 118 denominator >>= 1; in DivModImpl()
|
/external/guava/guava/src/com/google/common/math/ |
D | LongMath.java | 678 long denominator = 1; 692 denominator *= i; 697 result = multiplyFraction(result, numerator, denominator); 699 denominator = i; 703 return multiplyFraction(result, numerator, denominator); 711 static long multiplyFraction(long x, long numerator, long denominator) { 713 return numerator / denominator; 715 long commonDivisor = gcd(x, denominator); 717 denominator /= commonDivisor; 720 return x * (numerator / denominator);
|
/external/libexif/libexif/ |
D | exif-entry.c | 296 r.denominator = (ExifLong) sr.denominator; in exif_entry_fix() 329 sr.denominator = (ExifLong) r.denominator; in exif_entry_fix() 539 if (v_rat.denominator) { in exif_entry_format_value() 546 int decimals = (int)(log10(v_rat.denominator)-0.08+1.0); in exif_entry_format_value() 550 (double) v_rat.denominator); in exif_entry_format_value() 554 (unsigned long) v_rat.denominator); in exif_entry_format_value() 568 if (v_srat.denominator) { in exif_entry_format_value() 569 int decimals = (int)(log10(fabs(v_srat.denominator))-0.08+1.0); in exif_entry_format_value() 573 (double) v_srat.denominator); in exif_entry_format_value() 577 (long) v_srat.denominator); in exif_entry_format_value() [all …]
|
/external/piex/src/tiff_directory/ |
D | tiff_directory.cc | 132 my_value[c].denominator = 1; in Get() 137 my_value[c].denominator = 1; in Get() 142 my_value[c].denominator = in Get() 144 if (my_value[c].denominator == 0) { in Get() 187 my_value[c].denominator = 1; in Get() 192 my_value[c].denominator = 1; in Get() 197 my_value[c].denominator = in Get() 199 if (my_value[c].denominator == 0) { in Get()
|
/external/libexif/libexif/fuji/ |
D | mnote-fuji-entry.c | 262 if (!vr.denominator) break; in mnote_fuji_entry_get_value() 264 vr.denominator); in mnote_fuji_entry_get_value() 286 if (!vr.denominator) break; in mnote_fuji_entry_get_value() 288 vr.denominator); in mnote_fuji_entry_get_value() 292 if (!vsr.denominator) break; in mnote_fuji_entry_get_value() 294 vsr.denominator); in mnote_fuji_entry_get_value()
|
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
D | test_VIDIOC_PARM.c | 111 parm.parm.capture.timeperframe.denominator, in do_get_param() 130 denominator != 0); in do_get_param() 136 denominator != 0); in do_get_param() 160 parm.parm.output.timeperframe.denominator, in do_get_param() 178 denominator != 0); in do_get_param() 184 denominator != 0); in do_get_param()
|
/external/python/cpython2/Doc/library/ |
D | fractions.rst | 20 .. class:: Fraction(numerator=0, denominator=1) 26 The first version requires that *numerator* and *denominator* are instances 28 with value ``numerator/denominator``. If *denominator* is :const:`0`, it 41 [sign] numerator ['/' denominator] 44 ``numerator`` and ``denominator`` (if present) are strings of 111 denominator at most max_denominator. This method is useful for finding
|
/external/python/cpython3/Doc/library/ |
D | fractions.rst | 20 .. class:: Fraction(numerator=0, denominator=1) 26 The first version requires that *numerator* and *denominator* are instances 28 with value ``numerator/denominator``. If *denominator* is :const:`0`, it 41 [sign] numerator ['/' denominator] 44 ``numerator`` and ``denominator`` (if present) are strings of 92 .. attribute:: denominator 124 denominator at most max_denominator. This method is useful for finding
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/interpolation/ |
D | DividedDifferenceInterpolator.java | 105 final double denominator = x[j+i] - x[j]; in computeDividedDifference() local 106 if (denominator == 0.0) { in computeDividedDifference() 110 divdiff[j] = (divdiff[j+1] - divdiff[j]) / denominator; in computeDividedDifference()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | NFSubstitution.java | 1495 private final double denominator; field in NumeratorSubstitution 1512 double denominator, in NumeratorSubstitution() argument 1520 this.denominator = denominator; in NumeratorSubstitution() 1544 return denominator == that2.denominator && withZeros == that2.withZeros; in equals() 1575 while ((nf *= 10) < denominator) { in doSubstitution() 1606 return Math.round(number * denominator); in transformNumber() 1616 return Math.round(number * denominator); in transformNumber() 1708 return denominator; in calcUpperBound()
|