#include "xf_database/group_aggregate.hpp"
template < AggregateOp op, typename T, typename T2, typename KEY_T > void groupAggregate ( hls::stream <T>& in_strm, hls::stream <bool>& in_e_strm, hls::stream <T2>& out_strm, hls::stream <bool>& out_e_strm, hls::stream <KEY_T>& kin_strm, hls::stream <KEY_T>& kout_strm )
group aggregate function that returns different type as input
Parameters:
op | the aggregate operator: AOP_SUM |
T | the input stream type, inferred from argument |
T2 | the output stream type, inferred from argument |
KEY_T | the input and output stream type, inferred from argument |
in_strm | input data stream |
in_e_strm | end flag stream for input data |
out_strm | output data stream |
out_e_strm | end flag stream for output data |
kin_strm | input indexing key stream |
kout_strm | output indexing key stream |