I was using SharedArray’s recently and tried something as simple as maximum
on a SharedArray yet this and many other basic function for working with arrays are lacking with shared arrays.
1 Like
I wouldn’t expect max
or min
to work. Have you tried maximum
and minimum
?
yes I meant maximum sorry the typo, edit above
What doesn’t work then?
julia> a = SharedArray{Float64}(2, 2)
2×2 SharedArray{Float64,2}:
0.0 0.0
0.0 0.0
julia> maximum(a)
0.0
right…
what about
julia> any!(SharedArray{Bool}(4,4))
julia> all!(SharedArray{Bool}(4,4))
can we expect SharedArray to support that?
No. You should actually look at the error printed. Those don’t work with Array
s either. Which one are you looking for?
julia> any(SharedArray{Bool}(4, 4))
false
julia> any!(SharedArray{Bool}(4, 4), SharedArray{Bool}(4,4))
4×4 SharedArray{Bool,2}:
false false false false
false false false false
false false false false
false false false false