GrPPI
0.2
Generic and Reusable Parallel Pattern Interface
|
OpenMP parallel implementation of the Map/reduce pattern. More...
Functions | |
template<typename InputIt , typename Transformer , typename Result , typename Combiner > | |
Result | grppi::map_reduce (parallel_execution_omp &ex, InputIt first, InputIt last, Result identity, Transformer &&transform_op, Combiner &&combine_op) |
Invoke Map/reduce pattern on a data sequence with native parallel execution. More... | |
OpenMP parallel implementation of the Map/reduce pattern.
Result grppi::map_reduce | ( | parallel_execution_omp & | ex, |
InputIt | first, | ||
InputIt | last, | ||
Result | identity, | ||
Transformer && | transform_op, | ||
Combiner && | combine_op | ||
) |
Invoke Map/reduce pattern on a data sequence with native parallel execution.
InputIt | Iterator type used for input sequence. |
Result | Result type of the reduction. |
Transformer | Callable type for the transformation operation. |
Combiner | Callable type for the combination operation of the reduction. |
ex | OpenMP parallel execution policy object. |
first | Iterator to the first element in the input sequence. |
last | Iterator to one past the end of the input sequence. |
identity | Result value for the combination operation. |
transf_op | Transformation operation. |
combine_op | Combination operation. |