| Author |
Comment/Response |
Patrick
|
02/23/11 4:31pm
Reap[ParallelDo[Sow[#]&/@Range[i],{i,10}]]
This should go through the range 1 to 1, sowing it, then the range 1 to 2, sowing that, then 1 to 3... and then finally reap the whole lot. However, it doesn't reap anything at the end, returning {Null,{}}.
Is this some problem with Parallelize and Sow/Reap that's not in the documentation for either? It works as intended with Do rather than ParallelDo.
URL: , |
|