Distributed memory collective reduce.
More...
|
template<typename Function > |
| reduce (const gang_id gid, const collective_id cid, topology const &t, Function &&f, BinaryOperation op=BinaryOperation{}) |
| Constructs an reduce object. More...
|
|
void | operator() (T const &t) |
|
void | operator() (T &&t) |
|
template<typename T, typename BinaryOperation>
class stapl::runtime::reduce< T, BinaryOperation >
Distributed memory collective reduce.
- Template Parameters
-
T | Object type. |
BinaryOperation | Binary operation function object type to be applied. |
- Warning
- This class supports only commutative reductions.
- See also
- collective
◆ reduce()
template<typename T, typename BinaryOperation>
template<typename Function >
Constructs an reduce object.
- Parameters
-
gid | Id of the gang the collective executes in. |
cid | Collective operation id. |
t | topology object associated with the gang. |
f | Function to call when the collective has finished. |
op | Reduction operator. |
The documentation for this class was generated from the following file:
- runtime/communicator/reduce.hpp