/external/rust/crates/itertools/benches/ |
D | combinations_with_replacement.rs | 7 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/ |
D | adaptors_no_collect.rs | 46 no_collect_test(|iter| iter.combinations_with_replacement(5)) in combinations_with_replacement_no_collect()
|
D | test_std.rs | 841 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/ |
D | Cargo.toml.orig | 61 name = "combinations_with_replacement"
|
D | Cargo.toml | 47 name = "combinations_with_replacement"
|
D | CHANGELOG.md | 8 - 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/ |
D | combinations_with_replacement.rs | 40 pub fn combinations_with_replacement<I>(iter: I, k: usize) -> CombinationsWithReplacement<I> in combinations_with_replacement() function
|
D | lib.rs | 117 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/ |
D | itertools.rst | 74 :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)"
|
D | collections.rst | 216 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/ |
D | itertools.rst | 72 :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)"
|
D | collections.rst | 415 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/ |
D | test_itertools.py | 118 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/ |
D | test_itertools.py | 261 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/ |
D | 3.1.rst | 263 :func:`itertools.combinations_with_replacement` function is one of 271 >>> [p+q for p,q in combinations_with_replacement('LOVE', 2)]
|
D | 2.7.rst | 1370 New function: ``itertools.combinations_with_replacement(iter, r)`` 1375 itertools.combinations_with_replacement('abc', 2) =>
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7.10rc1.rst | 506 Fixed possible integer overflow in itertools.combinations_with_replacement.
|
D | 2.7a1.rst | 4056 Added new itertools functions: combinations_with_replacement() and
|
/external/python/cpython3/Doc/howto/ |
D | functional.rst | 932 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/ |
D | np_array_ops_test.py | 1151 for arys in itertools.combinations_with_replacement(possible_arys, r):
|
/external/mesa3d/src/compiler/nir/ |
D | nir_opt_algebraic.py | 1606 for left, right in itertools.combinations_with_replacement(invert.keys(), 2):
|
/external/tensorflow/tensorflow/python/ops/ |
D | image_ops_test.py | 5433 for t in itertools.combinations_with_replacement(img, 2) 5571 for t in itertools.combinations_with_replacement(img, 2)
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.7.rst | 1355 New function: ``itertools.combinations_with_replacement(iter, r)`` 1360 itertools.combinations_with_replacement('abc', 2) =>
|
/external/python/cpython3/Misc/ |
D | HISTORY | 454 itertools.combinations_with_replacement(). 15683 - Added a new itertools functions: combinations_with_replacement()
|