MCPcopy Create free account
hub / github.com/boostorg/compute / scatter

Function scatter

include/boost/compute/algorithm/scatter.hpp:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86/// \see gather()
87template<class InputIterator, class MapIterator, class OutputIterator>
88inline void scatter(InputIterator first,
89 InputIterator last,
90 MapIterator map,
91 OutputIterator result,
92 command_queue &queue = system::default_queue())
93{
94 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
95 BOOST_STATIC_ASSERT(is_device_iterator<MapIterator>::value);
96 BOOST_STATIC_ASSERT(is_device_iterator<OutputIterator>::value);
97
98 detail::scatter_kernel<InputIterator, MapIterator, OutputIterator> kernel;
99
100 kernel.set_range(first, last, map, result);
101 kernel.exec(queue);
102}
103
104} // end compute namespace
105} // end boost namespace

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
random_shuffleFunction · 0.85

Calls 2

set_rangeMethod · 0.45
execMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68