mpi::chunk

#include <mpi.hpp>

Synopsis

template<typename R>
auto chunk (R && rg, communicator c = {})

Template parameters

  • R Range type.

Parameters

  • rg Range to divide.

  • c mpi::communicator.

Returns

An itertools::sliced range assigned to the calling process.