mpi::gather

#include <mpi.hpp>

Synopsis

template<typename T>
decltype(auto) gather (T && x, communicator c = {}, int root = 0, bool all = false)

Template parameters

  • T Type to be gathered.

Parameters

  • x Object to be gathered.

  • c mpi::communicator.

  • root Rank of the root process.

  • all Should all processes receive the result of the gather.

Returns

The result of the specialized mpi_gather call.