The docs on SharedArrays give an example where you partition just over one 
axis (e.g., the 3rd axis). That's easy and tends to work well in many 
applications.

Best,
--Tim

On Sunday, February 14, 2016 12:38:55 AM Greg Plowman wrote:
> On Saturday, February 13, 2016 at 1:57:11 AM UTC+11, Stefan Karpinski wrote:
> > I'm kind of curious what the use case is. How are you using
> > CartesianRanges?
> 
> I want parallelise a simulation iterating over a CartesianRange.
> This entails partitioning the CartesianRange into sub-ranges and calling
> the sim function with each sub-range as an argument, using pmap.
> It's quite easy to use linear indexes to sub-divide into integer intervals,
> but then I need to use ind2sub or equivalent at each iteration, which I
> think is somewhat slower than iterating over a CartesianRange.

Reply via email to