|
OPALX (Object Oriented Parallel Accelerator Library for Exascale) MINIorX
OPALX
|
Helper struct to look up and store MPI_Op types for custom types and custom operations. More...
#include <Operations.h>

Public Member Functions | |
| MPI_Op | operator() () |
| Get the MPI_Op for this CppOp + Type combo. More... | |
Helper struct to look up and store MPI_Op types for custom types and custom operations.
| Op | Operation type, for examples std::plus<Vector<double, 3>>, std::multiplies<...> etc. |
| Type | The underlying datatype, such as Vector<double, 3>, Matrix<...> etc. |
Definition at line 79 of file Operations.h.
|
inline |
Get the MPI_Op for this CppOp + Type combo.
Construct a new lambda object without captures, therefore convertible to a function pointer
| inputBuffer | pointing to a Type object |
| outputBuffer | pointing to a Type object |
| len | Amount of Type objects! NOT amount of bytes! |
Definition at line 85 of file Operations.h.
References ippl::mpi::MAX, ippl::max(), ippl::mpi::MIN, ippl::min(), ippl::mpi::mpiOperations, ippl::mpi::MULTIPLICATION, and ippl::mpi::SUM.
