Home
last modified time | relevance | path

Searched refs:permutations (Results 1 – 25 of 93) sorted by relevance

1234

/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DCollections2Test.java84 Iterator<List<Integer>> permutations = permutationSet.iterator(); in testOrderedPermutationSetEmpty() local
86 assertNextPermutation(Lists.<Integer>newArrayList(), permutations); in testOrderedPermutationSetEmpty() local
87 assertNoMorePermutations(permutations); in testOrderedPermutationSetEmpty()
92 Iterator<List<Integer>> permutations = in testOrderedPermutationSetOneElement() local
95 assertNextPermutation(newArrayList(1), permutations); in testOrderedPermutationSetOneElement()
96 assertNoMorePermutations(permutations); in testOrderedPermutationSetOneElement()
101 Iterator<List<String>> permutations = in testOrderedPermutationSetThreeElements() local
104 assertNextPermutation(newArrayList("a", "b", "c"), permutations); in testOrderedPermutationSetThreeElements()
105 assertNextPermutation(newArrayList("a", "c", "b"), permutations); in testOrderedPermutationSetThreeElements()
106 assertNextPermutation(newArrayList("b", "a", "c"), permutations); in testOrderedPermutationSetThreeElements()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DCollections2Test.java242 Iterator<List<Integer>> permutations = permutationSet.iterator();
244 assertNextPermutation(Lists.<Integer>newArrayList(), permutations);
245 assertNoMorePermutations(permutations);
250 Iterator<List<Integer>> permutations =
253 assertNextPermutation(newArrayList(1), permutations);
254 assertNoMorePermutations(permutations);
259 Iterator<List<String>> permutations =
262 assertNextPermutation(newArrayList("a", "b", "c"), permutations);
263 assertNextPermutation(newArrayList("a", "c", "b"), permutations);
264 assertNextPermutation(newArrayList("b", "a", "c"), permutations);
[all …]
/external/mesa3d/docs/specs/
DEGL_MESA_drm_image_formats.txt83 1. Should we expose the full set of channel permutations for the formats,
90 of the possible permutations of 8-bit channel formats. It is also not
91 clear where the additional permutations would be used. For example,
93 doesn't allow for the other permutations.
/external/icu/icu4c/source/test/intltest/
Dcanittst.cpp133 Hashtable *permutations = new Hashtable(FALSE, status); in TestBasic() local
134 permutations->setValueDeleter(uprv_deleteUObject); in TestBasic()
137 CanonicalIterator::permute(toPermute, FALSE, permutations, status); in TestBasic()
141 …expectEqual("Simple permutation ", "", collectionToString(permutations), "ABC, ACB, BAC, BCA, CAB,… in TestBasic()
143 delete permutations; in TestBasic()
/external/guava/guava/src/com/google/common/collect/
DCollections2.java433 long permutations = 1; in calculateSize() local
441 permutations *= binomial(n, r); in calculateSize()
443 if (!isPositiveInt(permutations)) { in calculateSize()
450 permutations *= binomial(n, r); in calculateSize()
451 if (!isPositiveInt(permutations)) { in calculateSize()
454 return (int) permutations; in calculateSize()
557 @Beta public static <E> Collection<List<E>> permutations( in permutations() method in Collections2
/external/fonttools/Lib/fontTools/varLib/
Dinterpolatable.py86 permutations = itertools.permutations(range(n))
87 best = list(next(permutations))
89 for p in permutations:
/external/icu/icu4c/source/common/
Dcaniter.cpp346 Hashtable permutations(status); in getEquivalents() local
352 permutations.setValueDeleter(uprv_deleteUObject); in getEquivalents()
372 permutations.removeAll(); in getEquivalents()
373 permute(item, CANITER_SKIP_ZEROES, &permutations, status); in getEquivalents()
377 ne2 = permutations.nextElement(el2); in getEquivalents()
395 ne2 = permutations.nextElement(el2); in getEquivalents()
/external/pdfium/third_party/libopenjpeg20/
Dinvert.c38 OPJ_UINT32 * permutations,
108 OPJ_UINT32 * permutations, in opj_lupDecompose() argument
112 OPJ_UINT32 * tmpPermutations = permutations; in opj_lupDecompose()
130 tmpPermutations = permutations; in opj_lupDecompose()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCanonicalIterator.java249 Set<String> permutations = new HashSet<String>(); in getEquivalents() local
257 permutations.clear(); in getEquivalents()
258 permute(item, SKIP_ZEROS, permutations); in getEquivalents()
259 Iterator<String> it2 = permutations.iterator(); in getEquivalents()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCanonicalIterator.java253 Set<String> permutations = new HashSet<String>(); in getEquivalents() local
261 permutations.clear(); in getEquivalents()
262 permute(item, SKIP_ZEROS, permutations); in getEquivalents()
263 Iterator<String> it2 = permutations.iterator(); in getEquivalents()
/external/skia/src/shaders/
DSkPerlinNoiseShader.cpp607 uint8_t* permutations = improved_noise_permutations; in calculateImprovedNoiseValueForPoint() local
608 int A = permutations[X] + Y; in calculateImprovedNoiseValueForPoint()
609 int AA = permutations[A] + Z; in calculateImprovedNoiseValueForPoint()
610 int AB = permutations[A + 1] + Z; in calculateImprovedNoiseValueForPoint()
611 int B = permutations[X + 1] + Y; in calculateImprovedNoiseValueForPoint()
612 int BA = permutations[B] + Z; in calculateImprovedNoiseValueForPoint()
613 int BB = permutations[B + 1] + Z; in calculateImprovedNoiseValueForPoint()
614 result += lerp(w, lerp(v, lerp(u, grad(permutations[AA ], px , py , pz ), in calculateImprovedNoiseValueForPoint()
615 grad(permutations[BA ], px - 1, py , pz )), in calculateImprovedNoiseValueForPoint()
616 lerp(u, grad(permutations[AB ], px , py - 1, pz ), in calculateImprovedNoiseValueForPoint()
[all …]
/external/skqp/src/shaders/
DSkPerlinNoiseShader.cpp607 uint8_t* permutations = improved_noise_permutations; in calculateImprovedNoiseValueForPoint() local
608 int A = permutations[X] + Y; in calculateImprovedNoiseValueForPoint()
609 int AA = permutations[A] + Z; in calculateImprovedNoiseValueForPoint()
610 int AB = permutations[A + 1] + Z; in calculateImprovedNoiseValueForPoint()
611 int B = permutations[X + 1] + Y; in calculateImprovedNoiseValueForPoint()
612 int BA = permutations[B] + Z; in calculateImprovedNoiseValueForPoint()
613 int BB = permutations[B + 1] + Z; in calculateImprovedNoiseValueForPoint()
614 result += lerp(w, lerp(v, lerp(u, grad(permutations[AA ], px , py , pz ), in calculateImprovedNoiseValueForPoint()
615 grad(permutations[BA ], px - 1, py , pz )), in calculateImprovedNoiseValueForPoint()
616 lerp(u, grad(permutations[AB ], px , py - 1, pz ), in calculateImprovedNoiseValueForPoint()
[all …]
/external/deqp/modules/gles2/scripts/
Dgen-qualification_order.py203 for p in itertools.permutations(f):
210 for p in itertools.permutations(f):
/external/python/cpython2/Lib/test/
Dtest_itertools.py110 for indices in permutations(range(n), r):
228 self.assertRaises(TypeError, permutations) # too few arguments
229 self.assertRaises(TypeError, permutations, 'abc', 2, 1) # too many arguments
230 self.assertRaises(TypeError, permutations, None) # pool is not iterable
231 self.assertRaises(ValueError, permutations, 'abc', -2) # r is negative
232 self.assertEqual(list(permutations('abc', 32)), []) # r > n
233 self.assertRaises(TypeError, permutations, 'abc', 's') # r is not an int or None
234 self.assertEqual(list(permutations(range(3), 2)),
273 result = list(permutations(values, r))
284 self.assertEqual(result, list(permutations(values, None))) # test r as None
[all …]
/external/python/cpython3/Lib/test/
Dtest_itertools.py246 for indices in permutations(range(n), r):
379 self.assertRaises(TypeError, permutations) # too few arguments
380 self.assertRaises(TypeError, permutations, 'abc', 2, 1) # too many arguments
381 self.assertRaises(TypeError, permutations, None) # pool is not iterable
382 self.assertRaises(ValueError, permutations, 'abc', -2) # r is negative
383 self.assertEqual(list(permutations('abc', 32)), []) # r > n
384 self.assertRaises(TypeError, permutations, 'abc', 's') # r is not an int or None
385 self.assertEqual(list(permutations(range(3), 2)),
424 result = list(permutations(values, r))
435 self.assertEqual(result, list(permutations(values, None))) # test r as None
[all …]
/external/deqp/modules/gles3/scripts/
Dgen-qualification_order.py224 for p in itertools.permutations(f):
234 for p in itertools.permutations(f):
/external/python/cpython2/Doc/library/
Ditertools.rst72 :func:`permutations` p[, r] r-length tuples, all po…
76 ``permutations('ABCD', 2)`` ``AB AC AD BA BC BD CA …
155 of :func:`permutations` after filtering entries where the elements are not
161 for indices in permutations(range(n), r):
498 .. function:: permutations(iterable[, r])
500 Return successive *r* length permutations of elements in the *iterable*.
503 of the *iterable* and all possible full-length permutations
516 def permutations(iterable, r=None):
517 # permutations('ABCD', 2) --> AB AC AD BA BC BD CA CB CD DA DB DC
518 # permutations(range(3)) --> 012 021 102 120 201 210
[all …]
/external/python/cpython3/Doc/library/
Ditertools.rst70 :func:`permutations` p[, r] r-length tuples, all po…
74 ``permutations('ABCD', 2)`` ``AB AC AD BA BC BD CA …
216 of :func:`permutations` after filtering entries where the elements are not
222 for indices in permutations(range(n), r):
462 .. function:: permutations(iterable, r=None)
464 Return successive *r* length permutations of elements in the *iterable*.
467 of the *iterable* and all possible full-length permutations
480 def permutations(iterable, r=None):
481 # permutations('ABCD', 2) --> AB AC AD BA BC BD CA CB CD DA DB DC
482 # permutations(range(3)) --> 012 021 102 120 201 210
[all …]
/external/grpc-grpc/src/proto/grpc/testing/
Dreport_qps_scenario_service.proto15 // An integration test service that covers all the method signature permutations
/external/tensorflow/tensorflow/compiler/tests/
Dreduce_ops_test.py218 itertools.permutations([f16_max, f16_max, f16_max * (-1.0)], 3))
231 itertools.permutations([bf16_max, value, bf16_max * (-1.0)], 3))
/external/llvm/test/CodeGen/X86/
Dconstant-combines.ll9 ; The DAG combiner at one point contained bugs that given enough permutations
/external/googletest/googlemock/scripts/generator/
DREADME33 Not all permutations of using multiple pointers/references will be rendered
/external/grpc-grpc-java/testing-proto/src/main/proto/io/grpc/testing/protobuf/
Dsimpleservice.proto15 // An integration test service that covers all the method signature permutations
/external/google-breakpad/src/testing/scripts/generator/
DREADME34 Not all permutations of using multiple pointers/references will be rendered
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dconstant-combines.ll10 ; The DAG combiner at one point contained bugs that given enough permutations

1234