MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / iota

Function iota

compute/include/boost/compute/algorithm/iota.hpp:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33/// Space complexity: \Omega(1)
34template<class BufferIterator, class T>
35inline void iota(BufferIterator first,
36 BufferIterator last,
37 const T &value,
38 command_queue &queue = system::default_queue())
39{
40 BOOST_STATIC_ASSERT(is_device_iterator<BufferIterator>::value);
41 T count = static_cast<T>(detail::iterator_range_size(first, last));
42
43 copy(
44 ::boost::compute::make_counting_iterator(value),
45 ::boost::compute::make_counting_iterator(value + count),
46 first,
47 queue
48 );
49}
50
51} // end compute namespace
52} // end boost namespace

Callers 15

mainFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
test_for_each.cppFile · 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
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 3

iterator_range_sizeFunction · 0.85
copyFunction · 0.85
make_counting_iteratorFunction · 0.85

Tested by 12

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
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
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68