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