HomeSort by relevance Sort by last modified time
    Searched defs:divide (Results 51 - 75 of 316) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/guava/guava/src/com/google/common/math/
IntMath.java 278 public static int divide(int p, int q, RoundingMode mode) { method in class:IntMath
384 a >>= aTwos; // divide out all 2s
386 b >>= bTwos; // divide out all 2s
390 // But in gcd(a - b, b), a - b is even and b is odd, so we can divide out powers of two.
404 a >>= Integer.numberOfTrailingZeros(a); // divide out all 2s, since 2 doesn't divide b
LongMath.java 347 public static long divide(long p, long q, RoundingMode mode) { method in class:LongMath
477 a >>= aTwos; // divide out all 2s
479 b >>= bTwos; // divide out all 2s
483 // But in gcd(a - b, b), a - b is even and b is odd, so we can divide out powers of two.
497 a >>= Long.numberOfTrailingZeros(a); // divide out all 2s, since 2 doesn't divide b
740 // These values were generated by using checkedMultiply to see when the simple multiply/divide
  /external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
IntMathTest.java 121 new BigDecimal(valueOf(p)).divide(new BigDecimal(valueOf(q)), 0, mode).intValue();
122 assertEquals(p + "/" + q, force32(expected), IntMath.divide(p, q, mode));
137 assertEquals(p + "/" + q, p, IntMath.divide(p, q, UNNECESSARY) * q);
138 assertTrue(p + "/" + q + " not expected to divide evenly", dividesEvenly);
140 assertFalse(p + "/" + q + " expected to divide evenly", dividesEvenly);
149 assertEquals(0, IntMath.divide(0, q, mode));
158 IntMath.divide(p, 0, mode);
344 .divide(BigDecimal.valueOf(2), BigDecimal.ROUND_FLOOR);
  /external/protobuf/java/util/src/main/java/com/google/protobuf/util/
TimeUtil.java 432 public static Duration divide(Duration duration, double value) { method in class:TimeUtil
441 public static Duration divide(Duration duration, long times) { method in class:TimeUtil
443 toBigInteger(duration).divide(toBigInteger(times)));
446 public static long divide(Duration d1, Duration d2) { method in class:TimeUtil
447 return toBigInteger(d1).divide(toBigInteger(d2)).longValue();
469 long seconds = value.divide(
  /external/valgrind/exp-bbv/tests/arm-linux/
ll.S 205 movs r3,r3,lsr #20 @ divide by 1024*1024 to get M
336 lsrs r3,r2,#1 @ divide by 2
385 bl divide @ Q=r7,$0, R=r8,$1
388 adds r3,r7,#0 @ move Q in for next divide, update flags
402 @ Divide - because ARM has no hardware int divide
409 divide: label
  /libcore/luni/src/test/java/libcore/java/math/
OldBigDecimalArithmeticTest.java 197 a.round(mc).divide(b.round(mc)).toString());
198 res = a.divide(b, BigDecimal.ROUND_FLOOR);
203 res = a.divide(b, BigDecimal.ROUND_UNNECESSARY);
209 res = a.divide(b, BigDecimal.ROUND_UNNECESSARY);
223 res = a.divide(b, -1220, BigDecimal.ROUND_FLOOR);
228 res = a.divide(b, 1, BigDecimal.ROUND_UNNECESSARY);
234 res = a.divide(b, 0, BigDecimal.ROUND_UNNECESSARY);
252 a.round(mc).divide(b.round(mc)).toString());
253 res = a.divide(b, mc);
259 res = a.divide(b, mc)
    [all...]
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
Target.java 228 Floaty divide(Floaty a, Floaty b) { method in class:Target
229 //Log.w("Target.divide", "a: " + a.toString());
230 //Log.w("Target.divide", "b: " + b.toString());
  /external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
Complex.java 210 public Complex divide(Complex rhs) { method in class:Complex
516 return this.add(Complex.I).divide(Complex.I.subtract(this)).log()
517 .multiply(Complex.I.divide(createComplex(2.0, 0.0)));
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
Fraction.java 513 BigInteger w = t.divide(BigInteger.valueOf(d2));
559 * <p>Divide the value of this fraction by another.</p>
561 * @param fraction the fraction to divide by, must not be <code>null</code>
564 * @throws ArithmeticException if the fraction to divide by is zero
568 public Fraction divide(Fraction fraction) { method in class:Fraction
581 * Divide the fraction by an integer.
582 * @param i the <tt>integer</tt> to divide by.
585 public Fraction divide(final int i) { method in class:Fraction
BigFraction.java 133 num = num.divide(gcd);
134 den = den.divide(gcd);
540 return new BigDecimal(numerator).divide(new BigDecimal(denominator));
559 return new BigDecimal(numerator).divide(new BigDecimal(denominator), roundingMode);
578 return new BigDecimal(numerator).divide(new BigDecimal(denominator), scale, roundingMode);
600 * Divide the value of this fraction by the passed <code>BigInteger</code>,
605 * the <code>BigInteger</code> to divide by, must not be
610 * if the fraction to divide by is zero.
612 public BigFraction divide(final BigInteger bg) { method in class:BigFraction
621 * Divide the value of this fraction by the passed <tt>int</tt>, i
631 public BigFraction divide(final int i) { method in class:BigFraction
647 public BigFraction divide(final long l) { method in class:BigFraction
662 public BigFraction divide(final BigFraction fraction) { method in class:BigFraction
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
SecP224R1FieldElement.java 95 public ECFieldElement divide(ECFieldElement b) method in class:SecP224R1FieldElement
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/
DiagBigDecimalTest.java 58 /* 1998.07.07 Scaled divide */
1381 (new android.icu.math.BigDecimal("1")).divide(new android.icu.math.BigDecimal("3"), -8, 0); method
1390 (new android.icu.math.BigDecimal("1000")).divide(new android.icu.math.BigDecimal("5000"), 0, android.icu.math.MathContext.ROUND_UNNECESSARY); method
1398 (new android.icu.math.BigDecimal("1001")).divide(new android.icu.math.BigDecimal("10"), 0, android.icu.math.MathContext.ROUND_UNNECESSARY); method
1406 (new android.icu.math.BigDecimal("1001")).divide(new android.icu.math.BigDecimal("100"), 1, android.icu.math.MathContext.ROUND_UNNECESSARY); method
1414 (new android.icu.math.BigDecimal("10001")).divide( method
1424 (new android.icu.math.BigDecimal("1.0001")).divide( method
1436 .divide(new android.icu.math.BigDecimal("0.00")); method
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/
DiagBigDecimalTest.java 56 /* 1998.07.07 Scaled divide */
1378 (new com.ibm.icu.math.BigDecimal("1")).divide(new com.ibm.icu.math.BigDecimal("3"), -8, 0); method
1387 (new com.ibm.icu.math.BigDecimal("1000")).divide(new com.ibm.icu.math.BigDecimal("5000"), 0, com.ibm.icu.math.MathContext.ROUND_UNNECESSARY); method
1395 (new com.ibm.icu.math.BigDecimal("1001")).divide(new com.ibm.icu.math.BigDecimal("10"), 0, com.ibm.icu.math.MathContext.ROUND_UNNECESSARY); method
1403 (new com.ibm.icu.math.BigDecimal("1001")).divide(new com.ibm.icu.math.BigDecimal("100"), 1, com.ibm.icu.math.MathContext.ROUND_UNNECESSARY); method
1411 (new com.ibm.icu.math.BigDecimal("10001")).divide( method
1421 (new com.ibm.icu.math.BigDecimal("1.0001")).divide( method
1433 .divide(new com.ibm.icu.math.BigDecimal("0.00")); method
    [all...]
  /external/crcalc/tests/src/com/hp/creals/
CRTest.java 91 check_eq(one.divide(four).shiftLeft(4), four, "divide failed 1");
92 check_eq(two.divide(one.negate()), two.negate(), "divide(neg) failed");
94 check_eq(one.divide(thirteen).multiply(thirteen), one,
95 "divide failed 2");
106 CR half_pi = CR.PI.divide(two);
107 CR half = one.divide(two);
SlowCRTest.java 54 final static CR HALF_PI = CR.PI.divide(CR.valueOf(2));
111 check(isApprInt(tmp.subtract(x).divide(CR.PI))
112 || isApprInt(tmp.add(x).divide(CR.PI)),
120 check(isApprInt(tmp.subtract(x).divide(CR.PI))
121 || isApprInt(tmp.add(x).divide(CR.PI)),
142 checkEq(x.ln().divide(CR.valueOf(2)), x.sqrt().ln(),
165 checkEq(ZERO.acos(), CR.PI.divide(TWO), "acos(0)");
169 checkEq(ONE.asin(), CR.PI.divide(TWO), "asin(1)");
170 checkEq(ONE.negate().asin(), CR.PI.divide(TWO).negate(), "asin(-1)");
  /external/eigen/Eigen/src/SVD/
BDCSVD.h 4 // We used the "A Divide-And-Conquer Algorithm for the Bidiagonal SVD"
49 * \brief class Bidiagonal Divide and Conquer SVD
54 * and then performs a divide-and-conquer diagonalization. Small blocks are diagonalized using class JacobiSVD.
175 void divide(Index firstCol, Index lastCol, Index firstRowW, Index firstColW, Index shift);
272 //**** step 2 - Divide & Conquer
278 divide(0, m_diagSize - 1, 0, 0, 0);
380 // The divide algorithm is done "in place", we are always working on subsets of the same matrix. The divide methods takes as argument the
391 void BDCSVD<MatrixType>::divide (Index firstCol, Index lastCol, Index firstRowW, Index firstColW, Index shift) function in class:Eigen::BDCSVD
423 // We use the divide and conquer algorith
    [all...]
  /external/guava/guava-tests/test/com/google/common/math/
IntMathTest.java 288 new BigDecimal(valueOf(p)).divide(new BigDecimal(valueOf(q)), 0, mode).intValue();
289 assertEquals(p + "/" + q, force32(expected), IntMath.divide(p, q, mode));
304 assertEquals(p + "/" + q, p, IntMath.divide(p, q, UNNECESSARY) * q);
305 assertTrue(p + "/" + q + " not expected to divide evenly", dividesEvenly);
307 assertFalse(p + "/" + q + " expected to divide evenly", dividesEvenly);
316 assertEquals(0, IntMath.divide(0, q, mode));
325 IntMath.divide(p, 0, mode);
579 .divide(BigDecimal.valueOf(2), BigDecimal.ROUND_FLOOR);
LongMathTest.java 330 new BigDecimal(valueOf(p)).divide(new BigDecimal(valueOf(q)), 0, mode).longValue();
331 assertEquals(expected, LongMath.divide(p, q, mode));
344 assertEquals(p, LongMath.divide(p, q, UNNECESSARY) * q);
357 assertEquals(0L, LongMath.divide(0L, q, mode));
367 LongMath.divide(p, 0L, mode);
680 .divide(BigDecimal.valueOf(2), BigDecimal.ROUND_FLOOR);
  /external/tensorflow/tensorflow/python/ops/
math_ops.py 24 @@divide
295 """Use Python2/Python3 division delegation to implement divide for tensors."""
317 @tf_export("divide")
318 def divide(x, y, name=None): function
1037 """Divide two values using Python 2 semantics. Used for Tensor.__div__.
1065 NOTE: Prefer using the Tensor operator or tf.divide which obey Python
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
Dfp.java 140 private static final String DIVIDE_TRAP = "divide";
301 xdfp = xdfp.divide(new Dfp(field, 4503599627370496l)).add(field.getOne()); // Divide by 2^52, then add one
942 final Dfp result = this.subtract(this.divide(d).rint().multiply(d));
1578 public Dfp divide(Dfp divisor) { method in class:Dfp
1793 public Dfp divide(int divisor) { method in class:Dfp
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
ECFieldElement.java 21 public abstract ECFieldElement divide(ECFieldElement b); method in class:ECFieldElement
191 public ECFieldElement divide(ECFieldElement b) method in class:ECFieldElement.Fp
743 public ECFieldElement divide(final ECFieldElement b) method in class:ECFieldElement.Fp.F2m
  /external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
APFloat.h 61 /// multiply, divide, fused-multiply-add, conversion-to-float,
248 opStatus divide(const IEEEFloat &, roundingMode);
286 Result.divide(RHS, rmNearestTiesToEven);
942 opStatus divide(const APFloat &RHS, roundingMode RM) { function in class:llvm::APFloat
    [all...]
  /external/turbine/java/com/google/turbine/binder/
ConstEvaluator.java 494 static Const.Value divide(Const.Value a, Const.Value b) { method in class:ConstEvaluator
774 case DIVIDE:
775 return divide(lhs, rhs);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
BigDecimalArithmeticTest.java 29 * Methods: add, subtract, multiply, divide
478 * Divide by zero
486 aNumber.divide(bNumber);
494 * Divide with ROUND_UNNECESSARY
504 aNumber.divide(bNumber, BigDecimal.ROUND_UNNECESSARY);
512 * Divide with invalid rounding mode
522 aNumber.divide(bNumber, 100);
530 * Divide: local variable exponent is less than zero
541 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_CEILING);
547 * Divide: local variable exponent is equal to zer
    [all...]
BigDecimalTest.java 215 * @tests java.math.BigDecimal#divide(java.math.BigDecimal, int)
220 BigDecimal divd3 = divd1.divide(divd2, BigDecimal.ROUND_UP);
228 divd3 = divd1.divide(divd2, BigDecimal.ROUND_DOWN);
235 divd1.divide(divd2, BigDecimal.ROUND_DOWN);
236 fail("divide by zero is not caught");
242 * @tests java.math.BigDecimal#divide(java.math.BigDecimal, int, int)
247 BigDecimal divd3 = divd1.divide(divd2, 3, BigDecimal.ROUND_HALF_UP);
252 divd3 = divd1.divide(divd2, 0, BigDecimal.ROUND_DOWN);
259 divd1.divide(divd2, 4, BigDecimal.ROUND_DOWN);
260 fail("divide by zero is not caught")
    [all...]

Completed in 846 milliseconds

1 23 4 5 6 7 8 91011>>