Home
last modified time | relevance | path

Searched refs:natural (Results 1 – 25 of 427) sorted by relevance

12345678910>>...18

/external/guava/android/guava-tests/test/com/google/common/collect/
DComparatorsTest.java37 Comparator<String> comparator = Ordering.natural(); in testLexicographical()
51 .addEqualityGroup(Ordering.natural()) in testLexicographical()
56 assertFalse(Comparators.isInOrder(asList(5, 3, 0, 9), Ordering.natural())); in testIsInOrder()
57 assertFalse(Comparators.isInOrder(asList(0, 5, 3, 9), Ordering.natural())); in testIsInOrder()
58 assertTrue(Comparators.isInOrder(asList(0, 3, 5, 9), Ordering.natural())); in testIsInOrder()
59 assertTrue(Comparators.isInOrder(asList(0, 0, 3, 3), Ordering.natural())); in testIsInOrder()
60 assertTrue(Comparators.isInOrder(asList(0, 3), Ordering.natural())); in testIsInOrder()
61 assertTrue(Comparators.isInOrder(Collections.singleton(1), Ordering.natural())); in testIsInOrder()
62 assertTrue(Comparators.isInOrder(Collections.<Integer>emptyList(), Ordering.natural())); in testIsInOrder()
66 assertFalse(Comparators.isInStrictOrder(asList(5, 3, 0, 9), Ordering.natural())); in testIsInStrictOrder()
[all …]
DTreeMultimapNaturalTest.java73 Ordering.natural().nullsFirst(), Ordering.natural().nullsFirst()); in suite()
87 .compare(left.getKey(), right.getKey(), Ordering.natural().nullsFirst()) in suite()
89 left.getValue(), right.getValue(), Ordering.natural().nullsFirst()) in suite()
113 TreeMultimap.create(Ordering.natural().nullsFirst(), Ordering.natural()); in suite()
122 return Ordering.natural().nullsFirst().sortedCopy(insertionOrder); in suite()
229 TreeMultimap.create(Ordering.natural(), Ordering.natural().nullsFirst()); in suite()
236 return Ordering.natural().nullsFirst().sortedCopy(insertionOrder); in suite()
252 TreeMultimap.create(Ordering.natural(), Ordering.natural().nullsFirst()); in suite()
259 return Ordering.natural().nullsFirst().sortedCopy(insertionOrder); in suite()
351 private static final Comparator<Double> KEY_COMPARATOR = Ordering.natural();
[all …]
DSortedIterablesTest.java29 assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet())); in testSameComparator()
32 assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet())); in testSameComparator()
36 Ordering.natural().reverse(), Sets.newTreeSet(Ordering.natural().reverse()))); in testSameComparator()
40 assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet())); in testComparator()
DImmutableTableTest.java220 .orderRowsBy(Ordering.natural()) in testBuilder_orderRowsAndColumnsBy_putAll()
221 .orderColumnsBy(Ordering.natural()) in testBuilder_orderRowsAndColumnsBy_putAll()
232 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_sparse()
233 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_sparse()
255 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_dense()
256 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_dense()
277 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsBy_sparse()
294 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsBy_dense()
310 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderColumnsBy_sparse()
327 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderColumnsBy_dense()
[all …]
DOrderingTest.java76 Ordering.<Integer>natural().nullsFirst().reverse().lexicographical().reverse().nullsLast(); in testComplicatedOrderingExample()
105 Ordering<Integer> comparator = Ordering.natural(); in testNatural()
133 Ordering<String> orderingFromOrdering = Ordering.from(Ordering.<String>natural()); in testFrom()
136 .addEqualityGroup(orderingFromOrdering, Ordering.natural()) in testFrom()
271 return Ordering.natural().onResultOf(CharAtFunction.values()[index]);
345 .addEqualityGroup(Ordering.natural().reverse())
365 private static final Ordering<Integer> DECREASING_INTEGER = Ordering.natural().reverse();
369 Ordering.natural().onResultOf(StringLengthFunction.StringLength);
376 comparator, Ordering.natural().onResultOf(StringLengthFunction.StringLength))
394 .addEqualityGroup(Ordering.natural())
[all …]
DImmutableSortedMapTest.java320 builder.orderEntriesByValue(Ordering.natural()); in testBuilder_orderEntriesByValueFails()
528 assertSame(Ordering.natural(), copy.comparator()); in testCopyOfEmptyMap()
536 assertSame(Ordering.natural(), copy.comparator()); in testCopyOfSingletonMap()
548 assertSame(Ordering.natural(), copy.comparator()); in testCopyOf()
552 Comparator<String> comparator = Ordering.natural().reverse(); in testCopyOfExplicitComparator()
565 Comparator<String> comparator = Ordering.natural().reverse(); in testCopyOfImmutableSortedSetDifferentComparator()
582 assertSame(Ordering.natural(), copy.comparator()); in testCopyOfSortedNatural()
586 Comparator<String> comparator = Ordering.natural().reverse(); in testCopyOfSortedExplicit()
654 assertEquals(Ordering.natural().reverse(), map.comparator()); in testBuilderReverseOrder()
658 Comparator<String> comparator = Ordering.natural().reverse(); in testBuilderComparator()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DComparatorsTest.java42 Comparator<String> comparator = Ordering.natural(); in testLexicographical()
56 .addEqualityGroup(Ordering.natural()) in testLexicographical()
61 assertFalse(Comparators.isInOrder(asList(5, 3, 0, 9), Ordering.natural())); in testIsInOrder()
62 assertFalse(Comparators.isInOrder(asList(0, 5, 3, 9), Ordering.natural())); in testIsInOrder()
63 assertTrue(Comparators.isInOrder(asList(0, 3, 5, 9), Ordering.natural())); in testIsInOrder()
64 assertTrue(Comparators.isInOrder(asList(0, 0, 3, 3), Ordering.natural())); in testIsInOrder()
65 assertTrue(Comparators.isInOrder(asList(0, 3), Ordering.natural())); in testIsInOrder()
66 assertTrue(Comparators.isInOrder(Collections.singleton(1), Ordering.natural())); in testIsInOrder()
67 assertTrue(Comparators.isInOrder(Collections.<Integer>emptyList(), Ordering.natural())); in testIsInOrder()
71 assertFalse(Comparators.isInStrictOrder(asList(5, 3, 0, 9), Ordering.natural())); in testIsInStrictOrder()
[all …]
DTreeMultimapNaturalTest.java73 Ordering.natural().nullsFirst(), Ordering.natural().nullsFirst()); in suite()
87 .compare(left.getKey(), right.getKey(), Ordering.natural().nullsFirst()) in suite()
89 left.getValue(), right.getValue(), Ordering.natural().nullsFirst()) in suite()
113 TreeMultimap.create(Ordering.natural().nullsFirst(), Ordering.natural()); in suite()
122 return Ordering.natural().nullsFirst().sortedCopy(insertionOrder); in suite()
229 TreeMultimap.create(Ordering.natural(), Ordering.natural().nullsFirst()); in suite()
236 return Ordering.natural().nullsFirst().sortedCopy(insertionOrder); in suite()
252 TreeMultimap.create(Ordering.natural(), Ordering.natural().nullsFirst()); in suite()
259 return Ordering.natural().nullsFirst().sortedCopy(insertionOrder); in suite()
351 private static final Comparator<Double> KEY_COMPARATOR = Ordering.natural();
[all …]
DSortedIterablesTest.java29 assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet())); in testSameComparator()
32 assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet())); in testSameComparator()
36 Ordering.natural().reverse(), Sets.newTreeSet(Ordering.natural().reverse()))); in testSameComparator()
40 assertEquals(Ordering.natural(), SortedIterables.comparator(Sets.newTreeSet())); in testComparator()
DOrderingTest.java76 Ordering.<Integer>natural().nullsFirst().reverse().lexicographical().reverse().nullsLast(); in testComplicatedOrderingExample()
105 Ordering<Integer> comparator = Ordering.natural(); in testNatural()
133 Ordering<String> orderingFromOrdering = Ordering.from(Ordering.<String>natural()); in testFrom()
136 .addEqualityGroup(orderingFromOrdering, Ordering.natural()) in testFrom()
271 return Ordering.natural().onResultOf(CharAtFunction.values()[index]);
345 .addEqualityGroup(Ordering.natural().reverse())
365 private static final Ordering<Integer> DECREASING_INTEGER = Ordering.natural().reverse();
369 Ordering.natural().onResultOf(StringLengthFunction.StringLength);
376 comparator, Ordering.natural().onResultOf(StringLengthFunction.StringLength))
394 .addEqualityGroup(Ordering.natural())
[all …]
DImmutableTableTest.java375 .orderRowsBy(Ordering.natural()) in testBuilder_orderRowsAndColumnsBy_putAll()
376 .orderColumnsBy(Ordering.natural()) in testBuilder_orderRowsAndColumnsBy_putAll()
387 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_sparse()
388 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_sparse()
410 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_dense()
411 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderRowsAndColumnsBy_dense()
432 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsBy_sparse()
449 builder.orderRowsBy(Ordering.natural()); in testBuilder_orderRowsBy_dense()
465 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderColumnsBy_sparse()
482 builder.orderColumnsBy(Ordering.natural()); in testBuilder_orderColumnsBy_dense()
[all …]
DImmutableSortedMapTest.java326 builder.orderEntriesByValue(Ordering.natural()); in testBuilder_orderEntriesByValueFails()
534 assertSame(Ordering.natural(), copy.comparator()); in testCopyOfEmptyMap()
542 assertSame(Ordering.natural(), copy.comparator()); in testCopyOfSingletonMap()
554 assertSame(Ordering.natural(), copy.comparator()); in testCopyOf()
558 Comparator<String> comparator = Ordering.natural().reverse(); in testCopyOfExplicitComparator()
571 Comparator<String> comparator = Ordering.natural().reverse(); in testCopyOfImmutableSortedSetDifferentComparator()
588 assertSame(Ordering.natural(), copy.comparator()); in testCopyOfSortedNatural()
592 Comparator<String> comparator = Ordering.natural().reverse(); in testCopyOfSortedExplicit()
660 assertEquals(Ordering.natural().reverse(), map.comparator()); in testBuilderReverseOrder()
664 Comparator<String> comparator = Ordering.natural().reverse(); in testBuilderComparator()
[all …]
/external/guava/guava-tests/test/com/google/common/graph/
DElementOrderTest.java66 GraphBuilder.directed().nodeOrder(ElementOrder.<Integer>natural()).build(); in nodeOrder_natural()
70 assertThat(graph.nodeOrder()).isEqualTo(ElementOrder.sorted(Ordering.<Integer>natural())); in nodeOrder_natural()
78 .nodeOrder(ElementOrder.sorted(Ordering.<Integer>natural().reverse())) in nodeOrder_sorted()
84 .isEqualTo(ElementOrder.sorted(Ordering.<Integer>natural().reverse())); in nodeOrder_sorted()
126 NetworkBuilder.directed().edgeOrder(ElementOrder.<String>natural()).build(); in edgeOrder_natural()
130 assertThat(network.edgeOrder()).isEqualTo(ElementOrder.sorted(Ordering.<String>natural())); in edgeOrder_natural()
139 .edgeOrder(ElementOrder.sorted(Ordering.<String>natural().reverse())) in edgeOrder_sorted()
145 .isEqualTo(ElementOrder.sorted(Ordering.<String>natural().reverse())); in edgeOrder_sorted()
157 .edgeOrder(ElementOrder.sorted(Ordering.<String>natural().reverse())) in nodeOrderUnorderedandEdgesSorted()
163 .isEqualTo(ElementOrder.sorted(Ordering.<String>natural().reverse())); in nodeOrderUnorderedandEdgesSorted()
[all …]
/external/guava/android/guava-tests/test/com/google/common/graph/
DElementOrderTest.java66 GraphBuilder.directed().nodeOrder(ElementOrder.<Integer>natural()).build(); in nodeOrder_natural()
70 assertThat(graph.nodeOrder()).isEqualTo(ElementOrder.sorted(Ordering.<Integer>natural())); in nodeOrder_natural()
78 .nodeOrder(ElementOrder.sorted(Ordering.<Integer>natural().reverse())) in nodeOrder_sorted()
84 .isEqualTo(ElementOrder.sorted(Ordering.<Integer>natural().reverse())); in nodeOrder_sorted()
126 NetworkBuilder.directed().edgeOrder(ElementOrder.<String>natural()).build(); in edgeOrder_natural()
130 assertThat(network.edgeOrder()).isEqualTo(ElementOrder.sorted(Ordering.<String>natural())); in edgeOrder_natural()
139 .edgeOrder(ElementOrder.sorted(Ordering.<String>natural().reverse())) in edgeOrder_sorted()
145 .isEqualTo(ElementOrder.sorted(Ordering.<String>natural().reverse())); in edgeOrder_sorted()
157 .edgeOrder(ElementOrder.sorted(Ordering.<String>natural().reverse())) in nodeOrderUnorderedandEdgesSorted()
163 .isEqualTo(ElementOrder.sorted(Ordering.<String>natural().reverse())); in nodeOrderUnorderedandEdgesSorted()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedSet.java56 private static final Comparator NATURAL_ORDER = Ordering.natural();
83 return ofInternal(Ordering.natural(), element); in of()
88 return ofInternal(Ordering.natural(), e1, e2); in of()
93 return ofInternal(Ordering.natural(), e1, e2, e3); in of()
98 return ofInternal(Ordering.natural(), e1, e2, e3, e4); in of()
104 return ofInternal(Ordering.natural(), e1, e2, e3, e4, e5); in of()
115 return ofInternal(Ordering.natural(), (E[]) all.toArray(new Comparable[0])); in of()
135 return copyOfInternal((Ordering<E>) Ordering.natural(), (Collection) elements, false); in copyOf()
139 return copyOfInternal((Ordering<E>) Ordering.natural(), (Iterable) elements, false); in copyOf()
143 return copyOfInternal((Ordering<E>) Ordering.natural(), (Iterator) elements); in copyOf()
[all …]
DImmutableSortedMap.java46 static final Comparator NATURAL_ORDER = Ordering.natural();
106 return new Builder<K, V>(Ordering.natural()).put(k1, v1).put(k2, v2).build(); in of()
111 return new Builder<K, V>(Ordering.natural()).put(k1, v1).put(k2, v2).put(k3, v3).build(); in of()
116 return new Builder<K, V>(Ordering.natural()) in of()
126 return new Builder<K, V>(Ordering.natural()) in of()
136 return copyOfInternal((Map) map, (Ordering<K>) Ordering.natural()); in copyOf()
209 return new Builder<K, V>(Ordering.natural()); in naturalOrder()
217 return new Builder<K, V>(Ordering.natural().reverse()); in reverseOrder()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_RaggedTensorToTensor.pbtxt20 (the natural shape) will be used. If some dimensions are left unspecified, then
21 the size of the natural shape is used in that dimension.
26 natural shape: [4, 5, 6]
30 natural shape: [4, 5, 6]
34 natural shape: [4, 5, 6]
67 natural shape) will be used. If some dimensions are left unspecified, then the
68 size of the natural shape is used in that dimension.
/external/guava/guava/src/com/google/common/collect/
DImmutableSortedMultiset.java120 return copyOf(Ordering.natural(), Arrays.asList(e1, e2)); in of()
131 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3)); in of()
143 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4)); in of()
155 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4, e5)); in of()
171 return copyOf(Ordering.natural(), all); in of()
181 return copyOf(Ordering.natural(), Arrays.asList(elements)); in copyOf()
209 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
227 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
313 if (Ordering.natural().equals(comparator)) { in emptyMultiset()
412 return new Builder<E>(Ordering.natural().reverse()); in reverseOrder()
[all …]
DImmutableSortedSet.java83 if (Ordering.natural().equals(comparator)) { in emptySet()
97 return new RegularImmutableSortedSet<E>(ImmutableList.of(element), Ordering.natural()); in of()
109 return construct(Ordering.natural(), 2, e1, e2); in of()
121 return construct(Ordering.natural(), 3, e1, e2, e3); in of()
133 return construct(Ordering.natural(), 4, e1, e2, e3, e4); in of()
146 return construct(Ordering.natural(), 5, e1, e2, e3, e4, e5); in of()
168 return construct(Ordering.natural(), contents.length, (E[]) contents); in of()
182 return construct(Ordering.natural(), elements.length, elements.clone()); in copyOf()
210 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
242 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
[all …]
DTreeMultimap.java83 return new TreeMultimap<>(Ordering.natural(), Ordering.natural()); in create()
106 return new TreeMultimap<>(Ordering.natural(), Ordering.natural(), multimap); in create()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/flow/
DNumbersBenchmark.kt42 private const val natural = 1000 in <lambda>() constant
83 val numbers = numbers().take(natural) in <lambda>()
95 val numbers = rxNumbers().take(natural.toLong()) in <lambda>()
109 .take(natural) in <lambda>()
117 return rxNumbers().take(natural.toLong()) in <lambda>()
/external/guava/android/guava/src/com/google/common/collect/
DImmutableSortedSet.java62 if (Ordering.natural().equals(comparator)) { in emptySet()
76 return new RegularImmutableSortedSet<E>(ImmutableList.of(element), Ordering.natural()); in of()
88 return construct(Ordering.natural(), 2, e1, e2); in of()
100 return construct(Ordering.natural(), 3, e1, e2, e3); in of()
112 return construct(Ordering.natural(), 4, e1, e2, e3, e4); in of()
125 return construct(Ordering.natural(), 5, e1, e2, e3, e4, e5); in of()
147 return construct(Ordering.natural(), contents.length, (E[]) contents); in of()
161 return construct(Ordering.natural(), elements.length, elements.clone()); in copyOf()
189 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
221 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
[all …]
DImmutableSortedMultiset.java76 return copyOf(Ordering.natural(), Arrays.asList(e1, e2)); in of()
87 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3)); in of()
99 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4)); in of()
111 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4, e5)); in of()
127 return copyOf(Ordering.natural(), all); in of()
137 return copyOf(Ordering.natural(), Arrays.asList(elements)); in copyOf()
165 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
183 Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable>natural(); in copyOf()
267 if (Ordering.natural().equals(comparator)) { in emptyMultiset()
366 return new Builder<E>(Ordering.natural().reverse()); in reverseOrder()
[all …]
DTreeMultimap.java83 return new TreeMultimap<>(Ordering.natural(), Ordering.natural()); in create()
106 return new TreeMultimap<>(Ordering.natural(), Ordering.natural(), multimap); in create()
/external/clang/test/Parser/
Dpragma-options.c9 #pragma options align=natural
19 #pragma align=natural

12345678910>>...18