Home
last modified time | relevance | path

Searched refs:combinations_with_replacement (Results 1 – 24 of 24) sorted by relevance

/external/rust/crates/itertools/benches/
Dcombinations_with_replacement.rs7 for i in (0..10).combinations_with_replacement(5) { in comb_replacement_n10_k5()
17 for i in (0..5).combinations_with_replacement(10) { in comb_replacement_n5_k10()
27 for i in (0..10).combinations_with_replacement(10) { in comb_replacement_n10_k10()
/external/rust/crates/itertools/tests/
Dadaptors_no_collect.rs46 no_collect_test(|iter| iter.combinations_with_replacement(5)) in combinations_with_replacement_no_collect()
Dtest_std.rs841 fn combinations_with_replacement() { in combinations_with_replacement() function
843 it::assert_equal((0..1).combinations_with_replacement(2), vec![vec![0, 0]]); in combinations_with_replacement()
846 (0..3).combinations_with_replacement(2), in combinations_with_replacement()
858 (0..3).combinations_with_replacement(0), in combinations_with_replacement()
863 (0..0).combinations_with_replacement(0), in combinations_with_replacement()
868 (0..0).combinations_with_replacement(2), in combinations_with_replacement()
/external/rust/crates/itertools/
DCargo.toml.orig61 name = "combinations_with_replacement"
DCargo.toml47 name = "combinations_with_replacement"
DCHANGELOG.md8 - Fix `combinations(0)` and `combinations_with_replacement(0)` (#383)
37 …- [`.combinations_with_replacement(k)`](https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.…
39 `[0, 1, 2].iter().combinations_with_replacement(2)` yields
/external/rust/crates/itertools/src/
Dcombinations_with_replacement.rs40 pub fn combinations_with_replacement<I>(iter: I, k: usize) -> CombinationsWithReplacement<I> in combinations_with_replacement() function
Dlib.rs117 pub use crate::combinations_with_replacement::CombinationsWithReplacement;
191 mod combinations_with_replacement; module
1366 fn combinations_with_replacement(self, k: usize) -> CombinationsWithReplacement<Self> in combinations_with_replacement() method
1371 combinations_with_replacement::combinations_with_replacement(self, k) in combinations_with_replacement()
/external/python/cpython2/Doc/library/
Ditertools.rst74 :func:`combinations_with_replacement` p, r r-length tuples, in sor…
78 ``combinations_with_replacement('ABCD', 2)`` ``AA AB AC AD BB BC BD …
170 .. function:: combinations_with_replacement(iterable, r)
185 def combinations_with_replacement(iterable, r):
186 # combinations_with_replacement('ABC', 2) --> AA AB AC BB BC CC
202 The code for :func:`combinations_with_replacement` can be also expressed as
206 def combinations_with_replacement(iterable, r):
842 "Random selection from itertools.combinations_with_replacement(iterable, r)"
Dcollections.rst216 elements, see :func:`itertools.combinations_with_replacement`.
218 map(Counter, combinations_with_replacement('ABC', 2)) --> AA AB AC BB BC CC
/external/python/cpython3/Doc/library/
Ditertools.rst72 :func:`combinations_with_replacement` p, r r-length tuples, in sor…
81 ``combinations_with_replacement('ABCD', 2)`` ``AA AB AC AD BB BC BD CC CD DD``
246 .. function:: combinations_with_replacement(iterable, r)
261 def combinations_with_replacement(iterable, r):
262 # combinations_with_replacement('ABC', 2) --> AA AB AC BB BC CC
278 The code for :func:`combinations_with_replacement` can be also expressed as
282 def combinations_with_replacement(iterable, r):
900 "Random selection from itertools.combinations_with_replacement(iterable, r)"
Dcollections.rst415 elements, see :func:`itertools.combinations_with_replacement`::
417 map(Counter, combinations_with_replacement('ABC', 2)) # --> AA AB AC BB BC CC
/external/python/cpython2/Lib/test/
Dtest_itertools.py118 for indices in combinations_with_replacement(range(n), r):
151 cwr = combinations_with_replacement
219 combinations_with_replacement("AA", 2**30)
223 cwr = combinations_with_replacement
305 cwr = list(combinations_with_replacement(s, r))
1025 self.assertEqual(list(combinations_with_replacement('ABC', 2)),
1155 self.makecycle(combinations_with_replacement([1,2,a,3], 3), a)
/external/python/cpython3/Lib/test/
Dtest_itertools.py261 for indices in combinations_with_replacement(range(n), r):
298 cwr = combinations_with_replacement
376 combinations_with_replacement("AA", 2**30)
381 cwr = combinations_with_replacement
466 cwr = list(combinations_with_replacement(s, r))
1600 self.assertEqual(list(combinations_with_replacement('ABC', 2)),
1734 self.makecycle(combinations_with_replacement([1,2,a,3], 3), a)
2181 cwr = combinations_with_replacement
/external/python/cpython3/Doc/whatsnew/
D3.1.rst263 :func:`itertools.combinations_with_replacement` function is one of
271 >>> [p+q for p,q in combinations_with_replacement('LOVE', 2)]
D2.7.rst1370 New function: ``itertools.combinations_with_replacement(iter, r)``
1375 itertools.combinations_with_replacement('abc', 2) =>
/external/python/cpython2/Misc/NEWS.d/
D2.7.10rc1.rst506 Fixed possible integer overflow in itertools.combinations_with_replacement.
D2.7a1.rst4056 Added new itertools functions: combinations_with_replacement() and
/external/python/cpython3/Doc/howto/
Dfunctional.rst932 The :func:`itertools.combinations_with_replacement(iterable, r) <itertools.combinations_with_replac…
938 itertools.combinations_with_replacement([1, 2, 3, 4, 5], 2) =>
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_array_ops_test.py1151 for arys in itertools.combinations_with_replacement(possible_arys, r):
/external/mesa3d/src/compiler/nir/
Dnir_opt_algebraic.py1606 for left, right in itertools.combinations_with_replacement(invert.keys(), 2):
/external/tensorflow/tensorflow/python/ops/
Dimage_ops_test.py5433 for t in itertools.combinations_with_replacement(img, 2)
5571 for t in itertools.combinations_with_replacement(img, 2)
/external/python/cpython2/Doc/whatsnew/
D2.7.rst1355 New function: ``itertools.combinations_with_replacement(iter, r)``
1360 itertools.combinations_with_replacement('abc', 2) =>
/external/python/cpython3/Misc/
DHISTORY454 itertools.combinations_with_replacement().
15683 - Added a new itertools functions: combinations_with_replacement()