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

Function transform_if

include/boost/compute/algorithm/transform_if.hpp:106–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104/// Space complexity: O(2n)
105template<class InputIterator, class OutputIterator, class UnaryFunction, class Predicate>
106inline OutputIterator transform_if(InputIterator first,
107 InputIterator last,
108 OutputIterator result,
109 UnaryFunction function,
110 Predicate predicate,
111 command_queue &queue = system::default_queue())
112{
113 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
114 BOOST_STATIC_ASSERT(is_device_iterator<OutputIterator>::value);
115 return detail::transform_if_impl(
116 first, last, result, function, predicate, false, queue
117 );
118}
119
120} // end compute namespace
121} // end boost namespace

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
copy_ifFunction · 0.85

Calls 1

transform_if_implFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68