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

Function transform_reduce

include/boost/compute/algorithm/transform_reduce.hpp:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 class UnaryTransformFunction,
43 class BinaryReduceFunction>
44inline void transform_reduce(InputIterator first,
45 InputIterator last,
46 OutputIterator result,
47 UnaryTransformFunction transform_function,
48 BinaryReduceFunction reduce_function,
49 command_queue &queue = system::default_queue())
50{
51 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
52 ::boost::compute::reduce(
53 ::boost::compute::make_transform_iterator(first, transform_function),
54 ::boost::compute::make_transform_iterator(last, transform_function),
55 result,
56 reduce_function,
57 queue
58 );
59}
60
61/// \overload
62template<class InputIterator1,

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
countMethod · 0.85

Calls 4

reduceFunction · 0.85
make_transform_iteratorFunction · 0.85
make_zip_iteratorFunction · 0.85
unpackFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68