| 36 | class UnaryTransformFunction, |
| 37 | class BinaryReduceFunction> |
| 38 | inline void transform_reduce(InputIterator first, |
| 39 | InputIterator last, |
| 40 | OutputIterator result, |
| 41 | UnaryTransformFunction transform_function, |
| 42 | BinaryReduceFunction reduce_function, |
| 43 | command_queue &queue = system::default_queue()) |
| 44 | { |
| 45 | ::boost::compute::reduce( |
| 46 | ::boost::compute::make_transform_iterator(first, transform_function), |
| 47 | ::boost::compute::make_transform_iterator(last, transform_function), |
| 48 | result, |
| 49 | reduce_function, |
| 50 | queue |
| 51 | ); |
| 52 | } |
| 53 | |
| 54 | /// \overload |
| 55 | template<class InputIterator1, |