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

Function transform

include/boost/compute/algorithm/transform.hpp:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37/// \see copy()
38template<class InputIterator, class OutputIterator, class UnaryOperator>
39inline OutputIterator transform(InputIterator first,
40 InputIterator last,
41 OutputIterator result,
42 UnaryOperator op,
43 command_queue &queue = system::default_queue())
44{
45 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
46 BOOST_STATIC_ASSERT(is_device_iterator<OutputIterator>::value);
47 return copy(
48 ::boost::compute::make_transform_iterator(first, op),
49 ::boost::compute::make_transform_iterator(last, op),
50 result,
51 queue
52 );
53}
54
55/// \overload
56template<class InputIterator1,

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
CHECK_RANGE_EQUALFunction · 0.85

Calls 4

copyFunction · 0.85
make_transform_iteratorFunction · 0.85
make_zip_iteratorFunction · 0.85
unpackFunction · 0.85

Tested by 15

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
CHECK_RANGE_EQUALFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68