Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.= Support #141

Closed
ChrisRackauckas opened this issue Jun 5, 2017 · 2 comments
Closed

.= Support #141

ChrisRackauckas opened this issue Jun 5, 2017 · 2 comments

Comments

@ChrisRackauckas
Copy link
Contributor

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.

@andreasnoack
Copy link
Member

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.

@vchuravy
Copy link
Member

vchuravy commented Oct 1, 2018

Should be supported now

@vchuravy vchuravy closed this as completed Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants