GrPPI
0.3.1
Generic and Reusable Parallel Pattern Interface
|
Interface for applyinng the Map/reduce pattern. More...
![]() |
Functions | |
template<typename Execution , typename... InputIterators, typename Identity , typename Transformer , typename Combiner , requires_iterators< InputIterators... > = 0> | |
auto | grppi::map_reduce (const Execution &ex, std::tuple< InputIterators... > firsts, std::size_t size, Identity &&identity, Transformer &&transform_op, Combiner &&combine_op) |
Invoke Map/reduce pattern on a data sequence. More... | |
template<typename Execution , typename... InputIterators, typename InputIt , typename Identity , typename Transformer , typename Combiner , requires_iterators< InputIterators... > = 0, requires_iterator< InputIt > = 0> | |
auto | grppi::map_reduce (const Execution &ex, std::tuple< InputIterators... > firsts, InputIt last, Identity &&identity, Transformer &&transform_op, Combiner &&combine_op) |
Invoke Map/reduce pattern on a data sequence. More... | |
template<typename Execution , typename InputIterator , typename Identity , typename Transformer , typename Combiner , requires_iterator< InputIterator > = 0> | |
auto | grppi::map_reduce (const Execution &ex, InputIterator first, InputIterator last, Identity &&identity, Transformer &&transform_op, Combiner &&combine_op) |
Invoke Map/reduce pattern on a data sequence. More... | |
template<typename Execution , typename InputIterator , typename Identity , typename Transformer , typename Combiner , typename... OtherInputIterators, requires_iterator< InputIterator > = 0> | |
auto | grppi::map_reduce (const Execution &ex, InputIterator first, InputIterator last, Identity &&identity, Transformer &&transform_op, Combiner &&combine_op, OtherInputIterators...other_firsts) |
Invoke Map/reduce pattern on multiple data sequences. More... | |
Interface for applyinng the Map/reduce pattern.
auto grppi::map_reduce | ( | const Execution & | ex, |
std::tuple< InputIterators... > | firsts, | ||
std::size_t | size, | ||
Identity && | identity, | ||
Transformer && | transform_op, | ||
Combiner && | combine_op | ||
) |
Invoke Map/reduce pattern on a data sequence.
Execution | Execution type. |
InputIterators | Iterators types used for the input sequences. |
Identity | Type for the identity value. |
Transformer | Callable type for the transformation operation. |
Combiner | Callable type for the combination operation of the reduction. |
ex | Execution policy object. |
firsts | Tuple of iterators to the first elements in the input sequences. |
size | Size of the input sequence to be process. |
identity | Identity value for the combination operation. |
transf_op | Transformation operation. |
combine_op | Combination operation. |
auto grppi::map_reduce | ( | const Execution & | ex, |
std::tuple< InputIterators... > | firsts, | ||
InputIt | last, | ||
Identity && | identity, | ||
Transformer && | transform_op, | ||
Combiner && | combine_op | ||
) |
Invoke Map/reduce pattern on a data sequence.
Execution | Execution type. |
InputIterators | Iterators types used for the input sequences. |
InputIt | Iterator type used for the fisrt input sequence. |
Identity | Type for the identity value. |
Transformer | Callable type for the transformation operation. |
Combiner | Callable type for the combination operation of the reduction. |
ex | Execution policy object. |
firsts | Tuple of iterators to the first elements in the input sequences. |
last | Iterator to one past the end of the input sequence. |
identity | Identity value for the combination operation. |
transf_op | Transformation operation. |
combine_op | Combination operation. |
auto grppi::map_reduce | ( | const Execution & | ex, |
InputIterator | first, | ||
InputIterator | last, | ||
Identity && | identity, | ||
Transformer && | transform_op, | ||
Combiner && | combine_op | ||
) |
Invoke Map/reduce pattern on a data sequence.
Execution | Execution type. |
InputIterator | Iterator type used for the input sequence. |
Identity | Type for the identity value. |
Transformer | Callable type for the transformation operation. |
Combiner | Callable type for the combination operation of the reduction. |
ex | 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 | Identity value for the combination operation. |
transf_op | Transformation operation. |
combine_op | Combination operation. |
auto grppi::map_reduce | ( | const Execution & | ex, |
InputIterator | first, | ||
InputIterator | last, | ||
Identity && | identity, | ||
Transformer && | transform_op, | ||
Combiner && | combine_op, | ||
OtherInputIterators... | other_firsts | ||
) |
Invoke Map/reduce pattern on multiple data sequences.
Execution | Execution type. |
InputIterator | Iterator type used for the input sequence. |
Identity | Type for the identity value. |
Transformer | Callable type for the transformation operation. |
Combiner | Callable type for the combination operation of the reduction. |
ex | 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 | Identity value for the combination operation. |
transf_op | Transformation operation. |
combine_op | Combination operation. |