andyferris / Dictionaries.jl

An alternative interface for dictionaries in Julia, for improved productivity and performance
Other
278 stars 28 forks source link

Broadcast from scalar doesn't work (no method matching size) #94

Closed Moelf closed 2 years ago

Moelf commented 2 years ago

while this works:

dict .*= 0.0

this doesn't:

dict .= 0.0

which is very awkward, when you need to set all values to some initial value which is not 0 or 1

a public API for this would be nice:

dict.values .= 0.0
andyferris commented 2 years ago

This should be fixed in v0.3.20