mpi::mpi_reduce_in_place
#include <mpi.hpp>
Synopsis
template<typename T>void mpi_reduce_in_place (T & x, template<typename T>void mpi_reduce_in_place (std::vector<T> & v,
Documentation
Template parameters
T Type to be reduced.
Parameters
x Object to be reduced.
c mpi::communicator.
root Rank of the root process.
all Should all processes receive the result of the reduction.
op MPI_Op used in the reduction.
v std::vector to reduce.