What is wrong? Why "dd" array is of type "Any" ?
ulia> addprocs(4)
4-element Array{Any,1}:
2
3
4
5
julia> D=readcsv("v4dane.txt");
julia> d=distribute(D)
2888x4 DArray{Float64,2,Array{Float64,2}}:
julia> d
2888x4 DArray{Float64,2,Array{Float64,2}}:
0.0 0.0 0.0 0.0
0.0 50.0 0.0 0.0
?
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
julia> eltype(d)
Float64
julia> sum(d)
63400.0
julia> d.chunks
4x1 Array{RemoteRef,2}:
RemoteRef(2,1,5)
RemoteRef(3,1,6)
RemoteRef(4,1,7)
RemoteRef(5,1,8)
julia> d.indexes
4x1 Array{(UnitRange{Int64},UnitRange{Int64}),2}:
(1:722,1:4)
(723:1444,1:4)
(1445:2166,1:4)
(2167:2888,1:4)
julia> dd=(d,workers() [1:4], [1,4])
(
2888x4 DArray{Float64,2,Array{Float64,2}}:
0.0 0.0 0.0 0.0
0.0 50.0 0.0 0.0
?
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0,
[2,3,4,5],[1,4])
julia> sum(dd)
ERROR: no method +(DArray{Float64,2,Array{Float64,2}}, Array{Int64,1})
in sum at tuple.jl:118
julia> eltype(dd)
Any
Paul
julia>