mpi::chunk_length

#include <mpi.hpp>

Synopsis

long chunk_length (long end, int n, int i)

Parameters

  • end End of the integer range [0, end).

  • n Number of subranges.

  • i Index of the subrange of interest.

Returns

Length of the i<sup>th</sup> subrange.