| 42 | class UnaryTransformFunction, |
| 43 | class BinaryReduceFunction> |
| 44 | inline void transform_reduce(InputIterator first, |
| 45 | InputIterator last, |
| 46 | OutputIterator result, |
| 47 | UnaryTransformFunction transform_function, |
| 48 | BinaryReduceFunction reduce_function, |
| 49 | command_queue &queue = system::default_queue()) |
| 50 | { |
| 51 | BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value); |
| 52 | ::boost::compute::reduce( |
| 53 | ::boost::compute::make_transform_iterator(first, transform_function), |
| 54 | ::boost::compute::make_transform_iterator(last, transform_function), |
| 55 | result, |
| 56 | reduce_function, |
| 57 | queue |
| 58 | ); |
| 59 | } |
| 60 | |
| 61 | /// \overload |
| 62 | template<class InputIterator1, |