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 SparseArraysBase
a = SparseArraysBase.SparseArrayDOK{Float64}(2,2)
a[1] =1
julia> a
2×2 SparseMatrixDOK{Float64, typeof(SparseArraysBase.default_getunstoredindex)}:1.0⋅⋅⋅
julia> a .*=22×2 SparseMatrixDOK{Float64, typeof(SparseArraysBase.default_getunstoredindex)}:0.0⋅⋅⋅
The text was updated successfully, but these errors were encountered:
We have to zero out the destination if it has values that won't get overwritten when mapping over the stored values of the source arrays, but that obviously goes wrong if the destination is aliased with one or more of the sources.
We'll have to add some unaliasing logic like in Base.Broadcast.
MWE:
The text was updated successfully, but these errors were encountered: