GrPPI
1.0
Generic and Reusable Parallel Pattern Interface
|
Interface for applying the md_stream-reduce. More...
Functions | |
template<typename Identity , typename Combiner > | |
auto | grppi::reduce (int window_size, int offset, Identity identity, Combiner &&combine_op) |
Invoke md_stream-reduce on a stream that can be composed in other streaming patterns. More... | |
Interface for applying the md_stream-reduce.
auto grppi::reduce | ( | int | window_size, |
int | offset, | ||
Identity | identity, | ||
Combiner && | combine_op | ||
) |
Invoke md_stream-reduce 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. |