mpi::scatter

#include <mpi.hpp>

Synopsis

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

Template parameters

  • T Type to be scattered.

Parameters

  • x Object to be scattered.

  • c mpi::communicator.

  • root Rank of the root process.

Returns

The result of the specialized mpi_scatter call.