|
Bolt
1.3
C++ template library with support for OpenCL
|
Functions | |
| template<typename InputIterator , typename UnaryFunction > | |
| InputIterator | bolt::amp::for_each (InputIterator first, InputIterator last, UnaryFunction f) |
ForEach applies the unary function f to each element in the range [first,last] without modifying the input sequence. | |
| template<typename InputIterator , typename UnaryFunction > | |
| InputIterator | bolt::amp::for_each (control &ctl, InputIterator first, InputIterator last, UnaryFunction f) |
| template<typename InputIterator , typename Size , typename UnaryFunction > | |
| InputIterator | bolt::amp::for_each_n (InputIterator first, Size n, UnaryFunction f) |
ForEach_n applies the unary function f to each element in the range [first,first+n] without modifying the input sequence. | |
| template<typename InputIterator , typename Size , typename UnaryFunction > | |
| InputIterator | bolt::amp::for_each_n (control &ctl, InputIterator first, Size n, UnaryFunction f) |
| InputIterator bolt::amp::for_each | ( | InputIterator | first, |
| InputIterator | last, | ||
| UnaryFunction | f | ||
| ) |
ForEach applies the unary function f to each element in the range [first,last] without modifying the input sequence.
| ctl | Optional Control structure to control accelerator, debug, tuning, etc.See bolt::amp::control. |
| first | The first element in the range of interest. |
| last | The last element in the range of interest. |
| f | Unary Function to apply to elements in the range [first,last]. |
| InputIterator | is a model of InputIterator is mutable. |
The following code snippet demonstrates how to use for_each with a device_vector..
| InputIterator bolt::amp::for_each_n | ( | InputIterator | first, |
| Size | n, | ||
| UnaryFunction | f | ||
| ) |
ForEach_n applies the unary function f to each element in the range [first,first+n] without modifying the input sequence.
| ctl | Optional Control structure to control accelerator, debug, tuning, etc.See bolt::amp::control. |
| first | The first element in the range of interest. |
| n | The size of the range of interest. |
| f | Unary Function to apply to elements in the range [first,first+n]. |
| InputIterator | is a model of InputIterator is mutable. |
The following code snippet demonstrates how to use for_each_n with a device_vector..
1.8.3