
28 Mar
2013
28 Mar
'13
6:32 a.m.
28.03.2013, 10:38, "Myles C. Maxfield"
Hello all. I'm using the Data.Vector.generate function with a complicated creation function to create a long vector. Is it possible to parallelize the creation of each element? Alternatively, if there was something like parMap for vectors, I suppose I could pass id to Data.Vector.generate and use parMap. Does something like this exist?
You may use computeP + fromFunction from Repa. Wrapping of vectors to Repa arrays (and vice versa) is O(1).