Bolt
1.3
C++ template library with support for OpenCL
|
gathers elements from a source array to a destination range. More...
Go to the source code of this file.
Namespaces | |
namespace | bolt |
Defining namespace for the Bolt project. | |
namespace | bolt::amp |
Namespace containing AMP related data types and functions. | |
Functions | |
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator > | |
void | bolt::amp::gather (::bolt::amp::control &ctl, InputIterator1 map_first, InputIterator1 map_last, InputIterator2 input_first, OutputIterator result) |
This version of gather copies elements from a source array to a destination range according to a specified map. For each i in InputIterator1 in the range [map_first, map_last), gather copies the corresponding input_first [ map [ i ] ] to result[ i - map_first ]. | |
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator > | |
void | bolt::amp::gather (InputIterator1 map_first, InputIterator1 map_last, InputIterator2 input_first, OutputIterator result) |
template<typename InputIterator1 , typename InputIterator2 , typename InputIterator3 , typename OutputIterator > | |
void | bolt::amp::gather_if (bolt::amp::control &ctl, InputIterator1 map_first, InputIterator1 map_last, InputIterator2 stencil, InputIterator3 input_first, OutputIterator result) |
This version of gather_if copies elements from a source array to a destination range according to a specified map. For each i in InputIterator1 in the range [map_first, map_last), gather_if copies the corresponding input_first [ map [ i ] ] to result[ i - map_first ] if stencil[ i - map_first ] is true . | |
template<typename InputIterator1 , typename InputIterator2 , typename InputIterator3 , typename OutputIterator > | |
void | bolt::amp::gather_if (InputIterator1 map_first, InputIterator1 map_last, InputIterator2 stencil, InputIterator3 input_first, OutputIterator result) |
template<typename InputIterator1 , typename InputIterator2 , typename InputIterator3 , typename OutputIterator , typename Predicate > | |
void | bolt::amp::gather_if (bolt::amp::control &ctl, InputIterator1 map_first, InputIterator1 map_last, InputIterator2 stencil, InputIterator3 input, OutputIterator result, Predicate pred) |
This version of gather_if copies elements from a source array to a destination range according to a specified map. For each i in InputIterator1 in the range [map_first, map_last), gather_if copies the corresponding input_first [ map [ i ] ] to result[ i - map_first ] if pred (stencil[ i - map_first ]) is true . | |
template<typename InputIterator1 , typename InputIterator2 , typename InputIterator3 , typename OutputIterator , typename Predicate > | |
void | bolt::amp::gather_if (InputIterator1 map_first, InputIterator1 map_last, InputIterator2 stencil, InputIterator3 input, OutputIterator result, Predicate pred) |
gathers elements from a source array to a destination range.