mpi::mpi_scatter

#include <mpi.hpp>

Synopsis

template<typename T>
std::vector<T> mpi_scatter (std::vector<T> const & v, communicator c = {}, int root = 0)

Template parameters

  • T Value type of the vector.

Parameters

  • v std::vector to scatter.

  • c mpi::communicator.

  • root Rank of the root process.

Returns

std::vector containing the result of the scatter operation.