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

Function fill

compute/include/boost/compute/algorithm/fill.hpp:281–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279/// \see boost::compute::fill_n()
280template<class BufferIterator, class T>
281inline void fill(BufferIterator first,
282 BufferIterator last,
283 const T &value,
284 command_queue &queue = system::default_queue())
285{
286 BOOST_STATIC_ASSERT(is_device_iterator<BufferIterator>::value);
287 size_t count = detail::iterator_range_size(first, last);
288 if(count == 0){
289 return;
290 }
291
292 detail::dispatch_fill(first, count, value, queue);
293}
294
295template<class BufferIterator, class T>
296inline future<void> fill_async(BufferIterator first,

Callers 15

fill_nFunction · 0.70
ResetMapMethod · 0.50
InitMethod · 0.50
ResetTrainingDataMethod · 0.50
InitMethod · 0.50
InitMethod · 0.50
ResetTrainingDataMethod · 0.50
AllocateGPUMemoryMethod · 0.50
ResetMapMethod · 0.50
InitMethod · 0.50
ResetTrainingDataMethod · 0.50
InitMethod · 0.50

Calls 2

iterator_range_sizeFunction · 0.85
dispatch_fillFunction · 0.85

Tested by 15

BOOST_AUTO_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
test_fillFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40