GrPPI  0.3.1
Generic and Reusable Parallel Pattern Interface
stream_reduce.h
Go to the documentation of this file.
1 
21 #ifndef GRPPI_STREAM_REDUCE_H
22 #define GRPPI_STREAM_REDUCE_H
23 
24 #include "common/patterns.h"
25 
26 namespace grppi {
27 
48 template <typename Identity, typename Combiner>
49 auto reduce(int window_size, int offset,
50  Identity identity,
51  Combiner && combine_op)
52 {
54  window_size, offset, identity,
55  std::forward<Combiner>(combine_op));
56 }
57 
63 }
64 
65 #endif
Definition: callable_traits.h:26
auto reduce(const Execution &ex, InputIt first, std::size_t size, Result &&identity, Combiner &&combine_op)
Invoke Reduce pattern with identity value on a data sequence with sequential execution.
Definition: reduce.h:55
Representation of reduce pattern. Represents a reduction that can be used as a stage on a pipeline...
Definition: reduce_pattern.h:34