in reply to Re: Split range 0 to M into N non-overlapping (roughly equal) ranges.
in thread Split range 0 to M into N non-overlapping (roughly equal) ranges.
I don't find that to be particularly clean. It uses more intermediate variables and terms.
Efficiency isn't a consideration here as this usually precedes the spawning of N threads that each iterate over $M/$N elements of data.
|
|---|