Is it possible to perform reduction on more than one variable in the case
where the loop is computing more than one quantity?
I tried doing something like this:
var1=zeros(Float64,10,4)
var2=zeros(Complex128,10,1)
@parallel (+) for m=1:10
var1[m,:] = [m,2*m,3*m,4*m]
var2[m] = m
(var1, var2)
end
but the addition method cannot add that type...
The goal here is to fill two arrays where each loop computes a specific
element. I figured that simply adding each end of loop array (which would
not overlap since all non-modified entries are zeroes) would be more simple
than using a shared array.
Thanks,
Jeremy