You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using DistributedArrays
u0 =@DArray [float(i+j) for i =1:5, j =1:5]
u0 .= u0
indexing not defined for DistributedArrays.DArray{Float64,2,Array{Float64,2}}
setindex! at abstractarray.jl:959 [inlined]
_setindex! at abstractarray.jl:984 [inlined]
setindex! at abstractarray.jl:960 [inlined]
macro expansion at broadcast.jl:154 [inlined]
macro expansion at simdloop.jl:73 [inlined]
macro expansion at broadcast.jl:147 [inlined]
_broadcast!(::Base.#identity, ::DistributedArrays.DArray{Float64,2,Array{Float64,2}}, ::Tuple{Tuple{Bool,Bool}}, ::Tuple{Tuple{Int64,Int64}}, ::DistributedArrays.DArray{Float64,2,Array{Float64,2}}, ::Tuple{}, ::Type{Val{0}}, ::CartesianRange{CartesianIndex{2}}) at broadcast.jl:139
broadcast_c! at broadcast.jl:211 [inlined]
broadcast!(::Function, ::DistributedArrays.DArray{Float64,2,Array{Float64,2}}, ::DistributedArrays.DArray{Float64,2,Array{Float64,2}}) at broadcast.jl:204
include_string(::String, ::String) at loading.jl:515
include_string(::String, ::String, ::Int64) at eval.jl:30
include_string(::Module, ::String, ::String, ::Int64, ::Vararg{Int64,N} where N) at eval.jl:34
(::Atom.##49#52{String,Int64,String})() at eval.jl:50
withpath(::Atom.##49#52{String,Int64,String}, ::String) at utils.jl:30
withpath(::Function, ::String) at eval.jl:38
macro expansion at eval.jl:49 [inlined]
(::Atom.##48#51{Dict{String,Any}})() at task.jl:80
For arrays which are made via similar or are just distributed the same, this would be a really nice operation since then inplace operations can be used.
The text was updated successfully, but these errors were encountered:
Yes. This should work. It might not be too difficult to mimic the out-of-place broadcast to get an in-place broadcast but with broadcast you never know. The corners can be quite tricky. I'll take a look.
For arrays which are made via
similar
or are just distributed the same, this would be a really nice operation since then inplace operations can be used.The text was updated successfully, but these errors were encountered: