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

Function partial_sum

include/boost/compute/algorithm/partial_sum.hpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30/// Space complexity on CPUs: \Omega(1)
31template<class InputIterator, class OutputIterator>
32inline OutputIterator
33partial_sum(InputIterator first,
34 InputIterator last,
35 OutputIterator result,
36 command_queue &queue = system::default_queue())
37{
38 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
39 BOOST_STATIC_ASSERT(is_device_iterator<OutputIterator>::value);
40 return ::boost::compute::inclusive_scan(first, last, result, queue);
41}
42
43} // end compute namespace
44} // end boost namespace

Callers 6

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
discrete_distributionFunction · 0.85

Calls 1

inclusive_scanFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68