fpmas 1.6
Classes | Public Types | List of all members
fpmas::io::Reduce< T, BinaryOp, Mpi > Struct Template Reference

#include <output.h>

Classes

class  All
 
class  Single
 

Public Types

typedef T Type
 
typedef Void Params
 

Detailed Description

template<typename T, typename BinaryOp = std::plus<T>, template< typename > class Mpi = communication::TypedMpi>
struct fpmas::io::Reduce< T, BinaryOp, Mpi >

A DistributedOperation that can be used to fetch data.

Data is gathered from all processes, and reduced using the provided BinaryOp, which applies the + operator by default.

Template Parameters
BinaryOpFunction object used to reduce data. See https://en.cppreference.com/w/cpp/utility/functional for useful predefined operators.
Mpifpmas::api::communication::TypedMpi implementation

Member Typedef Documentation

◆ Type

template<typename T , typename BinaryOp = std::plus<T>, template< typename > class Mpi = communication::TypedMpi>
typedef T fpmas::io::Reduce< T, BinaryOp, Mpi >::Type

Type returned by the internal Watcher.

◆ Params

template<typename T , typename BinaryOp = std::plus<T>, template< typename > class Mpi = communication::TypedMpi>
typedef Void fpmas::io::Reduce< T, BinaryOp, Mpi >::Params

Reduce does not take any extra parameter.


The documentation for this struct was generated from the following file: