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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template scatter

boost::compute::scatter

Synopsis

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


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

Description

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

Space complexity: \Omega(1)

See Also:

gather()


PrevUpHomeNext