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

Function generate

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

Source from the content-addressed store, hash-verified

24/// [\p first, \p last).
25template<class OutputIterator, class Generator>
26inline void generate(OutputIterator first,
27 OutputIterator last,
28 Generator generator,
29 command_queue &queue = system::default_queue())
30{
31 size_t count = detail::iterator_range_size(first, last);
32 if(count == 0){
33 return;
34 }
35
36 ::boost::compute::copy(
37 ::boost::compute::make_function_input_iterator(generator,
38 first.get_index()),
39 ::boost::compute::make_function_input_iterator(generator,
40 last.get_index()),
41 first,
42 queue
43 );
44}
45
46} // end compute namespace
47} // end boost namespace

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
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 4

iterator_range_sizeFunction · 0.85
copyFunction · 0.85
get_indexMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68