Home
last modified time | relevance | path

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

12

/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.rs45 no_collect_test(|iter| iter.combinations_with_replacement(5)) in combinations_with_replacement_no_collect()
Dtest_std.rs903 fn combinations_with_replacement() { in combinations_with_replacement() function
905 it::assert_equal((0..1).combinations_with_replacement(2), vec![vec![0, 0]]); in combinations_with_replacement()
908 (0..3).combinations_with_replacement(2), in combinations_with_replacement()
920 (0..3).combinations_with_replacement(0), in combinations_with_replacement()
925 (0..0).combinations_with_replacement(0), in combinations_with_replacement()
930 (0..0).combinations_with_replacement(2), in combinations_with_replacement()
Dquick.rs1618 is_fused(a.clone().combinations_with_replacement(1)) &&
1619 is_fused(a.combinations_with_replacement(3))
/external/rust/crates/itertools/src/
Dcombinations_with_replacement.rs42 pub fn combinations_with_replacement<I>(iter: I, k: usize) -> CombinationsWithReplacement<I> in combinations_with_replacement() function
Dlib.rs118 pub use crate::combinations_with_replacement::CombinationsWithReplacement;
196 mod combinations_with_replacement; module
1510 fn combinations_with_replacement(self, k: usize) -> CombinationsWithReplacement<Self> in combinations_with_replacement() method
1515 combinations_with_replacement::combinations_with_replacement(self, k) in combinations_with_replacement()
/external/rust/crates/itertools/
DCargo.toml.orig62 name = "combinations_with_replacement"
DCargo.toml48 name = "combinations_with_replacement"
DCHANGELOG.md69 - Fix `combinations(0)` and `combinations_with_replacement(0)` (#383)
98 …- [`.combinations_with_replacement(k)`](https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.…
100 `[0, 1, 2].iter().combinations_with_replacement(2)` yields
/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.rst73 :func:`combinations_with_replacement` p, r r-length tuples, in sor…
82 ``combinations_with_replacement('ABCD', 2)`` ``AA AB AC AD BB BC BD CC CD DD``
247 .. function:: combinations_with_replacement(iterable, r)
262 def combinations_with_replacement(iterable, r):
263 # combinations_with_replacement('ABC', 2) --> AA AB AC BB BC CC
279 The code for :func:`combinations_with_replacement` can be also expressed as
283 def combinations_with_replacement(iterable, r):
985 "Random selection from itertools.combinations_with_replacement(iterable, r)"
Dcollections.rst444 elements, see :func:`itertools.combinations_with_replacement`::
446 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.py263 for indices in combinations_with_replacement(range(n), r):
300 cwr = combinations_with_replacement
378 combinations_with_replacement("AA", 2**30)
383 cwr = combinations_with_replacement
468 cwr = list(combinations_with_replacement(s, r))
1595 it = combinations_with_replacement([None, []], 1)
1667 self.assertEqual(list(combinations_with_replacement('ABC', 2)),
1801 self.makecycle(combinations_with_replacement([1,2,a,3], 3), a)
2263 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.rst931 The :func:`itertools.combinations_with_replacement(iterable, r) <itertools.combinations_with_replac…
937 itertools.combinations_with_replacement([1, 2, 3, 4, 5], 2) =>
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_array_ops_test.py1207 for arys in itertools.combinations_with_replacement(possible_arys, r):
/external/python/cpython3/Misc/NEWS.d/
D3.10.0a3.rst43 - :func:`itertools.combinations_with_replacement`
/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.py5710 for t in itertools.combinations_with_replacement(img, 2)
5869 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) =>

12