Home
last modified time | relevance | path

Searched refs:Double (Results 1 – 25 of 1296) sorted by relevance

12345678910>>...52

/external/guava/android/guava-tests/test/com/google/common/primitives/
DDoubleArrayAsListTest.java43 private static List<Double> asList(Double[] values) { in asList()
53 List<ListTestSuiteBuilder<Double>> builders = in suite()
64 for (ListTestSuiteBuilder<Double> builder : builders) { in suite()
82 protected List<Double> create(Double[] elements) { in create()
89 protected List<Double> create(Double[] elements) { in create()
90 Double[] suffix = {Double.MIN_VALUE, Double.MAX_VALUE}; in create()
91 Double[] all = concat(elements, suffix); in create()
98 protected List<Double> create(Double[] elements) { in create()
99 Double[] prefix = {(double) 86, (double) 99}; in create()
100 Double[] all = concat(prefix, elements); in create()
[all …]
DImmutableDoubleArrayTest.java104 Iterable<Double> iterable = iterable(Collections.<Double>emptySet()); in testCopyOf_iterable_notCollection_empty()
109 List<Double> list = Arrays.asList(0.0, 1.0, 3.0); in testCopyOf_iterable_notCollection_nonempty()
116 Iterable<Double> iterable = Collections.emptySet(); in testCopyOf_iterable_collection_empty()
121 List<Double> list = Arrays.asList(0.0, 1.0, 3.0); in testCopyOf_iterable_collection_nonempty()
122 ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf((Iterable<Double>) list); in testCopyOf_iterable_collection_nonempty()
128 Collection<Double> iterable = Collections.emptySet(); in testCopyOf_collection_empty()
133 List<Double> list = Arrays.asList(0.0, 1.0, 3.0); in testCopyOf_collection_nonempty()
193 List<Double> list = new ArrayList<>(); in doIt()
204 List<Double> list = new ArrayList<>(); in doIt()
301 ImmutableDoubleArray.of(-0.0, 0.0, Double.MAX_VALUE, Double.POSITIVE_INFINITY, Double.NaN); in testIndexOf_specialValues()
[all …]
DDoublesTest.java20 import static java.lang.Double.NaN;
49 private static final double LEAST = Double.NEGATIVE_INFINITY;
50 private static final double GREATEST = Double.POSITIVE_INFINITY;
55 -Double.MAX_VALUE,
64 Double.MAX_VALUE,
66 Double.MIN_NORMAL,
67 -Double.MIN_NORMAL,
68 Double.MIN_VALUE,
69 -Double.MIN_VALUE,
80 assertEquals(((Double) value).hashCode(), Doubles.hashCode(value)); in testHashCode()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DDoubleArrayAsListTest.java43 private static List<Double> asList(Double[] values) { in asList()
53 List<ListTestSuiteBuilder<Double>> builders = in suite()
64 for (ListTestSuiteBuilder<Double> builder : builders) { in suite()
82 protected List<Double> create(Double[] elements) { in create()
89 protected List<Double> create(Double[] elements) { in create()
90 Double[] suffix = {Double.MIN_VALUE, Double.MAX_VALUE}; in create()
91 Double[] all = concat(elements, suffix); in create()
98 protected List<Double> create(Double[] elements) { in create()
99 Double[] prefix = {(double) 86, (double) 99}; in create()
100 Double[] all = concat(prefix, elements); in create()
[all …]
DImmutableDoubleArrayTest.java105 Iterable<Double> iterable = iterable(Collections.<Double>emptySet()); in testCopyOf_iterable_notCollection_empty()
110 List<Double> list = Arrays.asList(0.0, 1.0, 3.0); in testCopyOf_iterable_notCollection_nonempty()
117 Iterable<Double> iterable = Collections.emptySet(); in testCopyOf_iterable_collection_empty()
122 List<Double> list = Arrays.asList(0.0, 1.0, 3.0); in testCopyOf_iterable_collection_nonempty()
123 ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf((Iterable<Double>) list); in testCopyOf_iterable_collection_nonempty()
129 Collection<Double> iterable = Collections.emptySet(); in testCopyOf_collection_empty()
134 List<Double> list = Arrays.asList(0.0, 1.0, 3.0); in testCopyOf_collection_nonempty()
202 List<Double> list = new ArrayList<>(); in doIt()
213 List<Double> list = new ArrayList<>(); in doIt()
320 ImmutableDoubleArray.of(-0.0, 0.0, Double.MAX_VALUE, Double.POSITIVE_INFINITY, Double.NaN); in testIndexOf_specialValues()
[all …]
DDoublesTest.java20 import static java.lang.Double.NaN;
49 private static final double LEAST = Double.NEGATIVE_INFINITY;
50 private static final double GREATEST = Double.POSITIVE_INFINITY;
55 -Double.MAX_VALUE,
64 Double.MAX_VALUE,
66 Double.MIN_NORMAL,
67 -Double.MIN_NORMAL,
68 Double.MIN_VALUE,
69 -Double.MIN_VALUE,
80 assertEquals(((Double) value).hashCode(), Doubles.hashCode(value)); in testHashCode()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DFloatTagTest.java27 assertEquals(new Double(6.8523015e+5), getMapValue("canonical: 6.8523015e+5", "canonical")); in testFloat()
28 assertEquals(new Double(6.8523015e+5), in testFloat()
30 assertEquals(new Double(6.8523015e+5), getMapValue("fixed: 685_230.15", "fixed")); in testFloat()
31 assertEquals(new Double(6.8523015e+5), in testFloat()
33 assertEquals(Double.NEGATIVE_INFINITY, in testFloat()
35 assertEquals(Double.NaN, getMapValue("not a number: .NaN", "not a number")); in testFloat()
39 assertEquals(new Double(1), getMapValue("number: !!float 1", "number")); in testFloatShorthand()
43 assertEquals(new Double(1), getMapValue("number: !<tag:yaml.org,2002:float> 1", "number")); in testFloatTag()
48 map.put("number", new Double(1)); in testFloatOut()
54 assertEquals(new Double(47.0), load("47.0")); in testBasicDoubleScalarLoad()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/
DRandomKey.java64 public abstract class RandomKey<T> extends AbstractListChromosome<Double> implements PermutationChr…
69 private final List<Double> sortedRepresentation;
81 public RandomKey(List<Double> representation) { in RandomKey()
84 List<Double> sortedRepr = new ArrayList<Double> (getRepresentation()); in RandomKey()
98 public RandomKey(Double[] representation) { in RandomKey()
119 …te static <S> List<S> decodeGeneric(List<S> sequence, List<Double> representation, List<Double> so… in decodeGeneric()
129 …List<Double> reprCopy = new ArrayList<Double> (representation);// do not modify the orig. represen… in decodeGeneric()
175 …protected void checkValidity(java.util.List<Double> chromosomeRepresentation) throws InvalidRepres… in checkValidity()
192 public static final List<Double> randomPermutation(int l) { in randomPermutation()
193 List<Double> repr = new ArrayList<Double>(l); in randomPermutation()
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/common/
Dsimdlib_types.hpp143 template <typename Float, typename Integer, typename Double>
148 Double vd[4];
208 union Double union
210 SIMDINLINE Double() = default;
211 SIMDINLINE Double(__m128d in) : v(in) {} in Double() function
212 SIMDINLINE Double& SIMDCALL operator=(__m128d in) in operator =()
217 SIMDINLINE Double& SIMDCALL operator=(Double const& in) in operator =()
227 using Vec4 = SIMDImpl::Vec4<Float, Integer, Double>;
285 union Double union
287 SIMDINLINE Double() = default;
[all …]
/external/smali/dexlib2/src/test/java/org/jf/util/
DNumberUtilsTest.java88 Assert.assertTrue(NumberUtils.isLikelyDouble(Double.doubleToRawLongBits(1.23f))); in isLikelyDoubleTest()
89 Assert.assertTrue(NumberUtils.isLikelyDouble(Double.doubleToRawLongBits(1.0f))); in isLikelyDoubleTest()
90 Assert.assertTrue(NumberUtils.isLikelyDouble(Double.doubleToRawLongBits(Double.NaN))); in isLikelyDoubleTest()
91 …Assert.assertTrue(NumberUtils.isLikelyDouble(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY))… in isLikelyDoubleTest()
92 …Assert.assertTrue(NumberUtils.isLikelyDouble(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY))… in isLikelyDoubleTest()
93 Assert.assertTrue(NumberUtils.isLikelyDouble(Double.doubleToRawLongBits(1e-30f))); in isLikelyDoubleTest()
94 Assert.assertTrue(NumberUtils.isLikelyDouble(Double.doubleToRawLongBits(1000f))); in isLikelyDoubleTest()
95 Assert.assertTrue(NumberUtils.isLikelyDouble(Double.doubleToRawLongBits(1f))); in isLikelyDoubleTest()
96 Assert.assertTrue(NumberUtils.isLikelyDouble(Double.doubleToRawLongBits(-1f))); in isLikelyDoubleTest()
97 Assert.assertTrue(NumberUtils.isLikelyDouble(Double.doubleToRawLongBits(-5f))); in isLikelyDoubleTest()
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DCounter2.java25 Map<T, Double> map;
39 map = new TreeMap<T, Double>(comparator); in Counter2()
41 map = new LinkedHashMap<T, Double>(); in Counter2()
45 public Counter2<T> add(T obj, Double one2) { in add()
46 Double count = map.get(obj); in add()
55 public Counter2<T> put(T obj, Double one2) { in put()
60 public static Double ZERO = new Double(0);
61 public static Double ONE = new Double(1);
63 private Double addN(Double count, Double countValue) { in addN()
68 private int compare(Double a, Double b) { in compare()
[all …]
/external/guava/guava-tests/test/com/google/common/math/
DMathTesting.java209 Double.MAX_EXPONENT - 1,
210 Double.MAX_EXPONENT,
211 Double.MAX_EXPONENT + 1)) {
227 static final ImmutableSet<Double> INTEGRAL_DOUBLE_CANDIDATES;
228 static final ImmutableSet<Double> FRACTIONAL_DOUBLE_CANDIDATES;
229 static final Iterable<Double> INFINITIES =
230 Doubles.asList(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY);
231 static final Iterable<Double> FINITE_DOUBLE_CANDIDATES;
232 static final Iterable<Double> POSITIVE_FINITE_DOUBLE_CANDIDATES;
233 static final Iterable<Double> ALL_DOUBLE_CANDIDATES;
[all …]
DDoubleMathTest.java69 BigInteger maxDoubleValue = BigDecimal.valueOf(Double.MAX_VALUE).toBigInteger(); in testConstantsMaxFactorial()
155 DoubleMath.roundToInt(Double.NaN, mode); in testRoundNaNToIntAlwaysFails()
166 DoubleMath.roundToInt(Double.POSITIVE_INFINITY, mode); in testRoundInfiniteToIntAlwaysFails()
171 DoubleMath.roundToInt(Double.NEGATIVE_INFINITY, mode); in testRoundInfiniteToIntAlwaysFails()
249 DoubleMath.roundToLong(Double.NaN, mode); in testRoundNaNToLongAlwaysFails()
260 DoubleMath.roundToLong(Double.POSITIVE_INFINITY, mode); in testRoundInfiniteToLongAlwaysFails()
265 DoubleMath.roundToLong(Double.NEGATIVE_INFINITY, mode); in testRoundInfiniteToLongAlwaysFails()
315 DoubleMath.roundToBigInteger(Double.NaN, mode); in testRoundNaNToBigIntegerAlwaysFails()
326 DoubleMath.roundToBigInteger(Double.POSITIVE_INFINITY, mode); in testRoundInfiniteToBigIntegerAlwaysFails()
331 DoubleMath.roundToBigInteger(Double.NEGATIVE_INFINITY, mode); in testRoundInfiniteToBigIntegerAlwaysFails()
[all …]
DLinearTransformationTest.java64 LinearTransformation.mapping(Double.POSITIVE_INFINITY, 3.4); in testMapping_infiniteX1()
72 LinearTransformation.mapping(1.2, Double.NEGATIVE_INFINITY); in testMapping_infiniteY1()
80 LinearTransformation.mapping(1.2, 3.4).and(Double.NEGATIVE_INFINITY, 7.8); in testMappingAnd_infiniteX2()
88 LinearTransformation.mapping(1.2, 3.4).and(5.6, Double.POSITIVE_INFINITY); in testMappingAnd_infiniteY2()
96 LinearTransformation.mapping(Double.NaN, 3.4); in testMapping_nanX1()
104 LinearTransformation.mapping(1.2, Double.NaN); in testMapping_nanY1()
112 LinearTransformation.mapping(1.2, 3.4).and(Double.NaN, 7.8); in testMappingAnd_nanX2()
120 LinearTransformation.mapping(1.2, 3.4).and(5.6, Double.NaN); in testMappingAnd_nanY2()
158 LinearTransformation.mapping(x, y1).withSlope(Double.POSITIVE_INFINITY); in testMappingWithSlope_vertical()
165 double slope = Double.MIN_VALUE; in testMappingWithSlope_minimalSlope()
[all …]
/external/guava/android/guava-tests/test/com/google/common/math/
DMathTesting.java209 Double.MAX_EXPONENT - 1,
210 Double.MAX_EXPONENT,
211 Double.MAX_EXPONENT + 1)) {
227 static final ImmutableSet<Double> INTEGRAL_DOUBLE_CANDIDATES;
228 static final ImmutableSet<Double> FRACTIONAL_DOUBLE_CANDIDATES;
229 static final Iterable<Double> INFINITIES =
230 Doubles.asList(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY);
231 static final Iterable<Double> FINITE_DOUBLE_CANDIDATES;
232 static final Iterable<Double> POSITIVE_FINITE_DOUBLE_CANDIDATES;
233 static final Iterable<Double> ALL_DOUBLE_CANDIDATES;
[all …]
DDoubleMathTest.java69 BigInteger maxDoubleValue = BigDecimal.valueOf(Double.MAX_VALUE).toBigInteger(); in testConstantsMaxFactorial()
155 DoubleMath.roundToInt(Double.NaN, mode); in testRoundNaNToIntAlwaysFails()
166 DoubleMath.roundToInt(Double.POSITIVE_INFINITY, mode); in testRoundInfiniteToIntAlwaysFails()
171 DoubleMath.roundToInt(Double.NEGATIVE_INFINITY, mode); in testRoundInfiniteToIntAlwaysFails()
249 DoubleMath.roundToLong(Double.NaN, mode); in testRoundNaNToLongAlwaysFails()
260 DoubleMath.roundToLong(Double.POSITIVE_INFINITY, mode); in testRoundInfiniteToLongAlwaysFails()
265 DoubleMath.roundToLong(Double.NEGATIVE_INFINITY, mode); in testRoundInfiniteToLongAlwaysFails()
315 DoubleMath.roundToBigInteger(Double.NaN, mode); in testRoundNaNToBigIntegerAlwaysFails()
326 DoubleMath.roundToBigInteger(Double.POSITIVE_INFINITY, mode); in testRoundInfiniteToBigIntegerAlwaysFails()
331 DoubleMath.roundToBigInteger(Double.NEGATIVE_INFINITY, mode); in testRoundInfiniteToBigIntegerAlwaysFails()
[all …]
DLinearTransformationTest.java64 LinearTransformation.mapping(Double.POSITIVE_INFINITY, 3.4); in testMapping_infiniteX1()
72 LinearTransformation.mapping(1.2, Double.NEGATIVE_INFINITY); in testMapping_infiniteY1()
80 LinearTransformation.mapping(1.2, 3.4).and(Double.NEGATIVE_INFINITY, 7.8); in testMappingAnd_infiniteX2()
88 LinearTransformation.mapping(1.2, 3.4).and(5.6, Double.POSITIVE_INFINITY); in testMappingAnd_infiniteY2()
96 LinearTransformation.mapping(Double.NaN, 3.4); in testMapping_nanX1()
104 LinearTransformation.mapping(1.2, Double.NaN); in testMapping_nanY1()
112 LinearTransformation.mapping(1.2, 3.4).and(Double.NaN, 7.8); in testMappingAnd_nanX2()
120 LinearTransformation.mapping(1.2, 3.4).and(5.6, Double.NaN); in testMappingAnd_nanY2()
158 LinearTransformation.mapping(x, y1).withSlope(Double.POSITIVE_INFINITY); in testMappingWithSlope_vertical()
165 double slope = Double.MIN_VALUE; in testMappingWithSlope_minimalSlope()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DLocalePriorityList.java75 private static final Double D1 = 1.0d;
80 private final Map<ULocale, Double> languagesAndWeights;
132 public Double getWeight(ULocale locale) { in getWeight()
153 for (Entry<ULocale, Double> entry : languagesAndWeights.entrySet()) { in toString()
205 private LocalePriorityList(final Map<ULocale, Double> languageToWeight) { in LocalePriorityList()
218 private Map<ULocale, Double> languageToWeight;
235 for (Double value : list.languagesAndWeights.values()) { in Builder()
267 Map<ULocale, Double> temp;
270 final TreeMap<Double, List<ULocale>> weightToLanguages =
272 for (Entry<ULocale, Double> entry : languageToWeight.entrySet()) {
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocalePriorityList.java74 private static final Double D1 = 1.0d;
79 private final Map<ULocale, Double> languagesAndWeights;
136 public Double getWeight(ULocale locale) { in getWeight()
159 for (Entry<ULocale, Double> entry : languagesAndWeights.entrySet()) { in toString()
214 private LocalePriorityList(final Map<ULocale, Double> languageToWeight) { in LocalePriorityList()
227 private Map<ULocale, Double> languageToWeight;
244 for (Double value : list.languagesAndWeights.values()) { in Builder()
278 Map<ULocale, Double> temp;
281 final TreeMap<Double, List<ULocale>> weightToLanguages =
283 for (Entry<ULocale, Double> entry : languageToWeight.entrySet()) {
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/sampling/
DAbstractStepInterpolator.java95 globalPreviousTime = Double.NaN; in AbstractStepInterpolator()
96 globalCurrentTime = Double.NaN; in AbstractStepInterpolator()
97 softPreviousTime = Double.NaN; in AbstractStepInterpolator()
98 softCurrentTime = Double.NaN; in AbstractStepInterpolator()
99 h = Double.NaN; in AbstractStepInterpolator()
100 interpolatedTime = Double.NaN; in AbstractStepInterpolator()
116 globalPreviousTime = Double.NaN; in AbstractStepInterpolator()
117 globalCurrentTime = Double.NaN; in AbstractStepInterpolator()
118 softPreviousTime = Double.NaN; in AbstractStepInterpolator()
119 softCurrentTime = Double.NaN; in AbstractStepInterpolator()
[all …]
/external/clang/test/SemaCXX/
Dmissing-namespace-qualifier-typo-corrections.cpp10 int Double(int x) { return x + x; } in Double() function
12Double(toFoobar()); // expected-error{{use of undeclared identifier 'toFoobar'; did you mean 'bars… in empty()
26 …if (toFoobar()) Double(7); // expected-error{{use of undeclared identifier 'toFoobar'; did you mea… in Check()
27 …if (noFoobar()) Double(7); // expected-error{{use of undeclared identifier 'noFoobar'; did you mea… in Check()
28 …if (moreFoobar()) Double(7); // expected-error{{use of undeclared identifier 'moreFoobar'; did you… in Check()
29 …if (lessFoobar()) Double(7); // expected-error{{use of undeclared identifier 'lessFoobar'; did you… in Check()
30 …if (baztool::toFoobar()) Double(7); // expected-error{{use of undeclared identifier 'baztool'; did… in Check()
31 …if (nested::moreFoobar()) Double(7); // expected-error{{use of undeclared identifier 'nested'; did… in Check()
32 …if (dummy::morebar()) Double(7); // expected-error{{use of undeclared identifier 'dummy'; did you … in Check()
33 …if (dummy::mrebar()) Double(7); // expected-error{{use of undeclared identifier 'dummy'; did you m… in Check()
[all …]
/external/crcalc/tests/src/com/hp/creals/
DConversionTest.java31 final CR BIG = CR.valueOf(Double.MAX_VALUE);
36 if (!Double.isNaN(x) && !Double.isInfinite(x)) { in checkDoubleConversion()
51 checkDoubleConversion(Math.nextAfter(x, Double.NEGATIVE_INFINITY)); in checkNearbyConversions()
52 checkDoubleConversion(Math.nextAfter(x, Double.POSITIVE_INFINITY)); in checkNearbyConversions()
55 checkFloatConversion(Math.nextAfter(f, Double.NEGATIVE_INFINITY)); in checkNearbyConversions()
56 checkFloatConversion(Math.nextAfter(f, Double.POSITIVE_INFINITY)); in checkNearbyConversions()
62 checkNearbyConversions(Double.MAX_VALUE); in testConversions()
63 checkNearbyConversions(Double.MIN_VALUE); in testConversions()
64 check(HUGE.doubleValue() == Double.POSITIVE_INFINITY, in testConversions()
66 check(HUGE.negate().doubleValue() == Double.NEGATIVE_INFINITY, in testConversions()
[all …]
/external/dokka/core/testdata/format/
DarrayAverage.kt3 fun XArray<out Byte>.average(): Double = 0.0
4 fun XArray<out Double>.average(): Double = 0.0
5 fun XArray<out Float>.average(): Double = 0.0
6 fun XArray<out Int>.average(): Double = 0.0
7 fun XArray<out Long>.average(): Double = 0.0
8 fun XArray<out Short>.average(): Double = 0.0
/external/guava/guava/src/com/google/common/primitives/
DDoubles.java21 import static java.lang.Double.NEGATIVE_INFINITY;
22 import static java.lang.Double.POSITIVE_INFINITY;
61 public static final int BYTES = Double.SIZE / Byte.SIZE;
73 return ((Double) value).hashCode(); in hashCode()
94 return Double.compare(a, b); in compare()
280 private static final class DoubleConverter extends Converter<String, Double>
285 protected Double doForward(String value) { in doForward()
286 return Double.valueOf(value); in doForward()
290 protected String doBackward(Double value) { in doBackward()
313 public static Converter<String, Double> stringConverter() { in stringConverter()
[all …]
/external/guava/android/guava/src/com/google/common/primitives/
DDoubles.java21 import static java.lang.Double.NEGATIVE_INFINITY;
22 import static java.lang.Double.POSITIVE_INFINITY;
59 public static final int BYTES = Double.SIZE / Byte.SIZE;
71 return ((Double) value).hashCode(); in hashCode()
92 return Double.compare(a, b); in compare()
278 private static final class DoubleConverter extends Converter<String, Double>
283 protected Double doForward(String value) { in doForward()
284 return Double.valueOf(value); in doForward()
288 protected String doBackward(Double value) { in doBackward()
311 public static Converter<String, Double> stringConverter() { in stringConverter()
[all …]

12345678910>>...52