 Split Ranks - Maple Help

Iterator

 SplitRanks
 compute the starting ranks and iterations suitable for parallelizing an iterator Calling Sequence SplitRanks(n, opts) Parameters

 n - nonnegint; number to split opts - (optional) equation(s) of the form option = value; specify options for the SplitRanks command Options

 Number of tasks. The default is the value of kernelopts(numcpus). Description

 • The SplitRanks command computes the starting ranks and number of iterations needed to split an iterator into separate tasks.
 • It returns a list of two-element sublists. Each sublist consist of a rank and number of iterations. The number of sublists equals the value of the numtasks option.  The number of iterations differ by at most one.
 • The n parameter is the total number of iterations.
 • See the example section of RevolvingDoorCombination for a use of this procedure to parallelize a search. Examples

 > $\mathrm{with}\left(\mathrm{Iterator}\right):$

 > $\mathrm{SplitRanks}\left(102,\mathrm{numtasks}=4\right)$
 $\left[\left[{1}{,}{26}\right]{,}\left[{27}{,}{26}\right]{,}\left[{53}{,}{25}\right]{,}\left[{78}{,}{25}\right]\right]$ (1) 