Home
last modified time | relevance | path

Searched refs:random_shuffle (Results 1 – 25 of 64) sorted by relevance

123

/third_party/boost/boost/range/algorithm/
Drandom_shuffle.hpp52 inline void random_shuffle(RandomIt first, RandomIt last) in random_shuffle() function
84 inline void random_shuffle(RandomIt first, RandomIt last, Generator& gen) in random_shuffle() function
91 using std::random_shuffle;
103 inline RandomAccessRange& random_shuffle(RandomAccessRange& rng) in random_shuffle() function
106 detail::random_shuffle(boost::begin(rng), boost::end(rng)); in random_shuffle()
112 inline const RandomAccessRange& random_shuffle(const RandomAccessRange& rng) in random_shuffle() function
115 detail::random_shuffle(boost::begin(rng), boost::end(rng)); in random_shuffle()
121 inline RandomAccessRange& random_shuffle(RandomAccessRange& rng, Generator& gen) in random_shuffle() function
124 detail::random_shuffle(boost::begin(rng), boost::end(rng), gen); in random_shuffle()
130 inline const RandomAccessRange& random_shuffle(const RandomAccessRange& rng, Generator& gen) in random_shuffle() function
[all …]
/third_party/boost/libs/range/doc/reference/algorithm/
Drandom_shuffle.qbk6 [section:random_shuffle random_shuffle]
12 RandomAccessRange& random_shuffle(RandomAccessRange& rng);
15 const RandomAccessRange& random_shuffle(const RandomAccessRange& rng);
18 RandomAccessRange& random_shuffle(RandomAccessRange& rng, Generator& gen);
21 const RandomAccessRange& random_shuffle(const RandomAccessRange& rng, Generator& gen);
26random_shuffle` randomly rearranges the elements in `rng`. The versions of `random_shuffle` that d…
30 Defined in the header file `boost/range/algorithm/random_shuffle.hpp`
/third_party/boost/libs/range/test/algorithm_test/
Drandom_shuffle.cpp101 boost::random_shuffle(test); in test_random_shuffle_nogen_impl()
117 boost::random_shuffle(boost::make_iterator_range(test2)); in test_random_shuffle_nogen_impl()
129 boost::random_shuffle(cont, gen); in test_random_shuffle_gen_impl()
140 boost::random_shuffle(boost::make_iterator_range(cont2), gen2); in test_random_shuffle_gen_impl()
152 boost::random_shuffle(cont); in test_random_shuffle_impl()
/third_party/boost/libs/config/test/
Dboost_no_cxx98_random_shuffle.ipp9 // TITLE: std::random_shuffle
10 // DESCRIPTION: The std lib has random_shuffle.
19 std::random_shuffle(&my_array[0], &my_array[9] );
/third_party/boost/libs/mpi/test/
Dgraph_topology_test.cpp37 template<typename RandomIt> void random_shuffle( RandomIt first, RandomIt last ) in random_shuffle() function
44 using std::random_shuffle;
97 ::random_shuffle(graph_alt_index_vec.begin(), graph_alt_index_vec.end()); in BOOST_AUTO_TEST_CASE()
/third_party/boost/libs/random/test/
Dtest_old_uniform_int_distribution.cpp71 std::random_shuffle(referenceVec.begin(), referenceVec.end(), referenceRand); in BOOST_AUTO_TEST_CASE()
72 std::random_shuffle(testVec.begin(), testVec.end(), testRand); in BOOST_AUTO_TEST_CASE()
Dtest_random_number_generator.cpp33 std::random_shuffle(testVec.begin(), testVec.end(), generator); in BOOST_AUTO_TEST_CASE()
/third_party/boost/libs/compute/include/boost/compute/algorithm/
Drandom_shuffle.hpp41 inline void random_shuffle(Iterator first, in random_shuffle() function
61 std::random_shuffle(random_indices.begin(), random_indices.end()); in random_shuffle()
/third_party/boost/boost/compute/algorithm/
Drandom_shuffle.hpp41 inline void random_shuffle(Iterator first, in random_shuffle() function
61 std::random_shuffle(random_indices.begin(), random_indices.end()); in random_shuffle()
/third_party/boost/libs/heap/test/
Dcommon_heap_tests.hpp26 void random_shuffle(RandomIt first, RandomIt last) in random_shuffle() function
41 using std::random_shuffle;
158 random_shuffle(shuffled.begin(), shuffled.end()); in pri_queue_test_random_push()
237 random_shuffle(shuffled.begin(), shuffled.end()); in pri_queue_test_swap()
255 random_shuffle(shuffled.begin(), shuffled.end()); in pri_queue_test_iterators()
284 random_shuffle(shuffled.begin(), shuffled.end()); in pri_queue_test_ordered_iterators()
Dmerge_heap_tests.hpp14 random_shuffle(data.begin(), data.end()); \
/third_party/boost/libs/phoenix/test/algorithm/
Dtransformation2.cpp58 using boost::phoenix::random_shuffle; in random_shuffle_test()
61 random_shuffle(arg1)(array); in random_shuffle_test()
/third_party/boost/libs/container/bench/
Dbench_set.hpp47 void random_shuffle( RandomIt first, RandomIt last ) in random_shuffle() function
79 ::random_shuffle(random_range_int.begin(), random_range_int.end()); in fill_range_ints()
83 ::random_shuffle(random_unique_range_int.begin(), random_unique_range_int.end()); in fill_range_ints()
115 ::random_shuffle(random_range_string.begin(), random_range_string.end()); in fill_range_strings()
119 ::random_shuffle(random_unique_range_string.begin(), random_unique_range_string.end()); in fill_range_strings()
/third_party/boost/libs/move/test/
Drandom_shuffle.hpp24 void random_shuffle( RandomIt first, RandomIt last ) in random_shuffle() function
Dadaptive_sort_test.cpp43 ::random_shuffle(elements.get(), elements.get() + element_count); in test_random_shuffled()
Dadaptive_merge_test.cpp44 ::random_shuffle(elements.get(), elements.get() + element_count); in test_random_shuffled()
Dbench_merge.cpp55 ::random_shuffle(elements.data(), elements.data() + L); in generate_elements()
56 ::random_shuffle(elements.data(), elements.data() + L); in generate_elements()
Dbench_sort.cpp57 ::random_shuffle(elements.data(), elements.data() + L); in generate_elements()
58 ::random_shuffle(elements.data(), elements.data() + L); in generate_elements()
/third_party/boost/libs/random/doc/
Dutilities.qbk12 …random_number_generator] [Adapts a __PseudoRandomNumberGenerator to work with std::random_shuffle]]
/third_party/boost/libs/compute/test/
Dtest_random_shuffle.cpp41 bc::random_shuffle(vector.begin(), vector.end(), queue); in BOOST_AUTO_TEST_CASE()
/third_party/boost/boost/phoenix/stl/algorithm/
Dtransformation.hpp519 struct random_shuffle struct
526 return std::random_shuffle(detail::begin_(r), detail::end_(r)); in operator ()()
532 return std::random_shuffle(detail::begin_(r), detail::end_(r), g); in operator ()()
1154 BOOST_PHOENIX_ADAPT_CALLABLE(random_shuffle, impl::random_shuffle, 1)
1155 BOOST_PHOENIX_ADAPT_CALLABLE(random_shuffle, impl::random_shuffle, 2)
/third_party/boost/libs/graph/example/
Dfibonacci_heap.cpp47 std::random_shuffle(w.begin(), w.end()); in main()
/third_party/boost/libs/property_tree/examples/
Dspeed_test.cpp36 random_shuffle(shuffled_keys.begin(), shuffled_keys.end()); in prepare_keys()
/third_party/boost/boost/range/detail/
Dmicrosoft.hpp836 std::random_shuffle(boost::begin(rng), boost::end(rng)); in test_random_access()
840 std::random_shuffle(boost::begin(rng), boost::end(rng)); in test_random_access()
844 std::random_shuffle(boost::begin(rng), boost::end(rng)); in test_random_access()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/rl/
Dbuffer_sample_cpu_kernel.h84 random_shuffle(indexes.begin(), indexes.end(), [&](int i) { return std::rand() % i; }); in Launch()

123