DistributedArrays.jl icon indicating copy to clipboard operation
DistributedArrays.jl copied to clipboard

map with multiple arguments

Open Alexander-Barth opened this issue 8 years ago • 1 comments

It would be great if map could also be called with 2 or more distributed arrays as argument. Currently the fall-back map is used.

@everywhere using DistributedArrays
x = distribute([1:10;])
y = distribute(2*[1:10;],x);
@which map(x -> x+1,x)
@which map(x,y -> x+1,x,y)

The output is the following: map(f, d::DistributedArrays.DArray) at /home/abarth/.julia/v0.5/DistributedArrays/src/mapreduce.jl:6 map(f, iters...) at abstractarray.jl:1711

In any case, thank you for your great library!

Alexander-Barth avatar Jan 16 '17 10:01 Alexander-Barth

Notice that on the master branch you should be able to do this with broadcast. It requires 0.6 though.

andreasnoack avatar Jan 16 '17 12:01 andreasnoack