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

Method set_range

include/boost/compute/algorithm/gather.hpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 {}
32
33 void set_range(MapIterator first,
34 MapIterator last,
35 InputIterator input,
36 OutputIterator result)
37 {
38 m_count = iterator_range_size(first, last);
39 m_offset = first.get_index();
40
41 *this <<
42 "const uint i = get_global_id(0);\n" <<
43 result[expr<uint_>("i")] << "=" <<
44 input[first[expr<uint_>("i")]] << ";\n";
45 }
46
47 event exec(command_queue &queue)
48 {

Callers 3

searchFunction · 0.45
gatherFunction · 0.45
find_endFunction · 0.45

Calls 2

iterator_range_sizeFunction · 0.85
get_indexMethod · 0.45

Tested by

no test coverage detected