Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Function template gather

boost::compute::gather

Synopsis

// In header: <boost/compute/algorithm/gather.hpp>


template<typename InputIterator, typename MapIterator, 
         typename OutputIterator> 
  void gather(MapIterator first, MapIterator last, InputIterator input, 
              OutputIterator result, 
              command_queue & queue = system::default_queue());

Description

Copies the elements using the indices from the range [first, last) to the range beginning at result using the input values from the range beginning at input.

Space complexity: \Omega(1)

See Also:

scatter()


PrevUpHomeNext