Cuts prefix sum array into p fixed and equal length parts where p is the processor number. More...
#include <oned/uniform.hpp>
Cuts prefix sum array into p fixed and equal length parts where p is the processor number.
Static Public Member Functions | |
static T | uni_cut (int procCount, const Pr &prefixSumArray, int length, int *cutIndexes, T max) |
Cuts prefix sum array into p fixed and equal length parts where p is the processor number. |
T oned::Uniform< T, Pr >::uni_cut | ( | int | procCount, | |
const Pr & | prefixSumArray, | |||
int | length, | |||
int * | cutIndexes, | |||
T | max | |||
) | [static] |
Cuts prefix sum array into p fixed and equal length parts where p is the processor number.
[in] | procCount | is the number of processors |
[in] | prefixSumArray | Prefix sum array that always starts with value 0 in the 0th |
[in] | length | is the length of prefixSumArray |
[out] | cutIndexes | |
[in] | max | is the load of the most loaded cell of the array (-1 if unknown). Unused in this algorithm. |