TRIQS/mpi 1.3.0
C++ interface to MPI
Loading...
Searching...
No Matches
pair.hpp File Reference
#include "./mpi.hpp"
#include <mpi.h>
#include <utility>

Detailed Description

Provides an MPI broadcast and reduce for std::pair.

Definition in file pair.hpp.

Go to the source code of this file.

Functions

template<typename T1 , typename T2 >
void mpi::mpi_broadcast (std::pair< T1, T2 > &p, communicator c={}, int root=0)
 Implementation of an MPI broadcast for a std::pair.
 
template<typename T1 , typename T2 >
auto mpi::mpi_reduce (std::pair< T1, T2 > const &p, communicator c={}, int root=0, bool all=false, MPI_Op op=MPI_SUM)
 Implementation of an MPI reduce for a std::pair.