Home
last modified time | relevance | path

Searched refs:Doubles (Results 1 – 25 of 94) sorted by relevance

1234

/external/guava/android/guava-tests/test/com/google/common/primitives/
DDoublesTest.java76 private static final double[] VALUES = Doubles.concat(NUMBERS, new double[] {NaN});
80 assertEquals(((Double) value).hashCode(), Doubles.hashCode(value)); in testHashCode()
86 assertEquals(!(Double.isNaN(value) || Double.isInfinite(value)), Doubles.isFinite(value)); in testIsFinite()
94 assertEquals(x + ", " + y, Double.valueOf(x).compareTo(y), Doubles.compare(x, y)); in testCompare()
100 assertFalse(Doubles.contains(EMPTY, (double) 1)); in testContains()
101 assertFalse(Doubles.contains(ARRAY1, (double) 2)); in testContains()
102 assertFalse(Doubles.contains(ARRAY234, (double) 1)); in testContains()
103 assertTrue(Doubles.contains(new double[] {(double) -1}, (double) -1)); in testContains()
104 assertTrue(Doubles.contains(ARRAY234, (double) 2)); in testContains()
105 assertTrue(Doubles.contains(ARRAY234, (double) 3)); in testContains()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DDoublesTest.java76 private static final double[] VALUES = Doubles.concat(NUMBERS, new double[] {NaN});
80 assertEquals(((Double) value).hashCode(), Doubles.hashCode(value)); in testHashCode()
86 assertEquals(!(Double.isNaN(value) || Double.isInfinite(value)), Doubles.isFinite(value)); in testIsFinite()
94 assertEquals(x + ", " + y, Double.valueOf(x).compareTo(y), Doubles.compare(x, y)); in testCompare()
100 assertFalse(Doubles.contains(EMPTY, (double) 1)); in testContains()
101 assertFalse(Doubles.contains(ARRAY1, (double) 2)); in testContains()
102 assertFalse(Doubles.contains(ARRAY234, (double) 1)); in testContains()
103 assertTrue(Doubles.contains(new double[] {(double) -1}, (double) -1)); in testContains()
104 assertTrue(Doubles.contains(ARRAY234, (double) 2)); in testContains()
105 assertTrue(Doubles.contains(ARRAY234, (double) 3)); in testContains()
[all …]
DDoubleArrayAsListTest.java48 return Doubles.asList(temp); in asList()
/external/guava/android/guava-tests/test/com/google/common/math/
DMathTesting.java36 import com.google.common.primitives.Doubles;
230 Doubles.asList(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY);
239 integralBuilder.addAll(Doubles.asList(0.0, -0.0, Double.MAX_VALUE, -Double.MAX_VALUE));
242 for (double d : Doubles.asList(Double.MIN_VALUE, Double.MIN_NORMAL)) {
256 Doubles.asList(
268 for (double delta : Doubles.asList(0.0, 1.0, 2.0)) {
269 integralBuilder.addAll(Doubles.asList(d + delta, d - delta, -d - delta, -d + delta));
271 for (double delta : Doubles.asList(0.01, 0.1, 0.25, 0.499, 0.5, 0.501, 0.7, 0.8)) {
DQuantilesTest.java35 import com.google.common.primitives.Doubles;
132 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testMedian_computeInPlace()
144 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testQuartiles_index_computeInPlace()
158 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testQuartiles_indexes_varargs_computeInPlace()
186 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_index_compute_doubleVarargs()
213 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_index_computeInPlace()
306 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_indexes_varargs_compute_doubleVarargs()
348 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_indexes_varargs_computeInPlace()
384 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_indexes_collection_computeInPlace()
534 double[] dataset = Doubles.toArray(PSEUDORANDOM_DATASET); in testPercentiles_index_computeInPlace()
[all …]
DStatsTesting.java30 import com.google.common.primitives.Doubles;
79 this.values = ImmutableList.copyOf(Doubles.asList(values)); in ManyValues()
87 return Doubles.toArray(values); in asArray()
/external/guava/guava-tests/test/com/google/common/math/
DMathTesting.java36 import com.google.common.primitives.Doubles;
230 Doubles.asList(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY);
239 integralBuilder.addAll(Doubles.asList(0.0, -0.0, Double.MAX_VALUE, -Double.MAX_VALUE));
242 for (double d : Doubles.asList(Double.MIN_VALUE, Double.MIN_NORMAL)) {
256 Doubles.asList(
268 for (double delta : Doubles.asList(0.0, 1.0, 2.0)) {
269 integralBuilder.addAll(Doubles.asList(d + delta, d - delta, -d - delta, -d + delta));
271 for (double delta : Doubles.asList(0.01, 0.1, 0.25, 0.499, 0.5, 0.501, 0.7, 0.8)) {
DQuantilesTest.java35 import com.google.common.primitives.Doubles;
132 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testMedian_computeInPlace()
144 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testQuartiles_index_computeInPlace()
158 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testQuartiles_indexes_varargs_computeInPlace()
186 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_index_compute_doubleVarargs()
213 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_index_computeInPlace()
306 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_indexes_varargs_compute_doubleVarargs()
348 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_indexes_varargs_computeInPlace()
384 double[] dataset = Doubles.toArray(SIXTEEN_SQUARES_DOUBLES); in testScale_indexes_collection_computeInPlace()
534 double[] dataset = Doubles.toArray(PSEUDORANDOM_DATASET); in testPercentiles_index_computeInPlace()
[all …]
DStatsTesting.java30 import com.google.common.primitives.Doubles;
80 this.values = ImmutableList.copyOf(Doubles.asList(values)); in ManyValues()
88 return Doubles.toArray(values); in asArray()
/external/guava/guava/src/com/google/common/math/
DPairedStatsAccumulator.java18 import static com.google.common.primitives.Doubles.isFinite;
24 import com.google.common.primitives.Doubles;
240 return Doubles.constrainToRange(value, -1.0, 1.0); in ensureInUnitRange()
DQuantiles.java26 import com.google.common.primitives.Doubles;
235 return computeInPlace(Doubles.toArray(dataset)); in compute()
340 return computeInPlace(Doubles.toArray(dataset)); in compute()
/external/guava/android/guava/src/com/google/common/math/
DPairedStatsAccumulator.java18 import static com.google.common.primitives.Doubles.isFinite;
24 import com.google.common.primitives.Doubles;
240 return Doubles.constrainToRange(value, -1.0, 1.0); in ensureInUnitRange()
DQuantiles.java26 import com.google.common.primitives.Doubles;
235 return computeInPlace(Doubles.toArray(dataset)); in compute()
340 return computeInPlace(Doubles.toArray(dataset)); in compute()
/external/guava/android/guava/src/com/google/common/primitives/
DDoubles.java50 public final class Doubles extends DoublesMethodsForWeb { class
51 private Doubles() {} in Doubles() method in Doubles
559 && Doubles.indexOf(array, (Double) target, start, end) != -1; in contains()
566 int i = Doubles.indexOf(array, (Double) target, start, end); in indexOf()
578 int i = Doubles.lastIndexOf(array, (Double) target, start, end); in lastIndexOf()
630 result = 31 * result + Doubles.hashCode(array[i]); in hashCode()
DImmutableDoubleArray.java149 return values.isEmpty() ? EMPTY : new ImmutableDoubleArray(Doubles.toArray(values)); in copyOf()
530 hash += Doubles.hashCode(array[i]); in hashCode()
/external/guava/guava/src/com/google/common/primitives/
DDoubles.java52 public final class Doubles extends DoublesMethodsForWeb { class
53 private Doubles() {} in Doubles() method in Doubles
566 && Doubles.indexOf(array, (Double) target, start, end) != -1; in contains()
573 int i = Doubles.indexOf(array, (Double) target, start, end); in indexOf()
585 int i = Doubles.lastIndexOf(array, (Double) target, start, end); in lastIndexOf()
637 result = 31 * result + Doubles.hashCode(array[i]); in hashCode()
DImmutableDoubleArray.java157 return values.isEmpty() ? EMPTY : new ImmutableDoubleArray(Doubles.toArray(values)); in copyOf()
582 hash += Doubles.hashCode(array[i]); in hashCode()
/external/guava/android/guava-tests/benchmark/com/google/common/math/
DStatsBenchmark.java23 import com.google.common.primitives.Doubles;
83 return Doubles.hashCode(mean) * 31 + Doubles.hashCode(variance); in hashCode()
/external/guava/guava-tests/benchmark/com/google/common/math/
DStatsBenchmark.java23 import com.google.common.primitives.Doubles;
83 return Doubles.hashCode(mean) * 31 + Doubles.hashCode(variance); in hashCode()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DDoubles.java3 public class Doubles class
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/
DDoubles.java7 public class Doubles class
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/
DDoubles.java7 public class Doubles class
/external/swiftshader/third_party/subzero/src/
DIceGlobalContext.cpp206 TypePool<IceType_f64, double, ConstantDouble> Doubles; member in Ice::ConstantPool
275 Str << "|f64=" << Pool->Doubles.size(); in dump()
662 X(Doubles); in dumpConstantLookupCounts()
716 return getConstPool()->Doubles.getOrAdd(this, ConstantDouble); in getConstantDouble()
785 return getConstPool()->Doubles.getConstantPool(); in getConstantPool()
/external/llvm-project/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp468 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(*TheContext)); in codegen() local
470 FunctionType::get(Type::getDoubleTy(*TheContext), Doubles, false); in codegen()
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp457 std::vector<Type *> Doubles(Args.size(), Type::getDoubleTy(TheContext)); in codegen() local
459 FunctionType::get(Type::getDoubleTy(TheContext), Doubles, false); in codegen()

1234