mpi::reduce_in_place

#include <mpi.hpp>

Synopsis

template<typename T>
void reduce_in_place (T & x, communicator c = {}, int root = 0, bool all = false, MPI_Op op = MPI_SUM)

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.