GrPPI
0.3.1
Generic and Reusable Parallel Pattern Interface
|
Interface for applying the Stream reduction pattern. More...
Functions | |
template<typename Identity , typename Combiner > | |
auto | grppi::reduce (int window_size, int offset, Identity identity, Combiner &&combine_op) |
Invoke Stream reduction pattern on a stream that can be composed in other streaming patterns. More... | |
Interface for applying the Stream reduction pattern.
auto grppi::reduce | ( | int | window_size, |
int | offset, | ||
Identity | identity, | ||
Combiner && | combine_op | ||
) |
Invoke Stream reduction pattern on a stream that can be composed in other streaming patterns.
Identity | Type of the identity value used by the combiner. |
Combiner | Callable type used for data items combination. |
ex | Sequential execution policy object. |
window_size | Number of consecutive items to be reduced. |
offset | Number of items after of which a new reduction is started. |
identity | Identity value for the combination. |
combine_op | Combination operation. |