Open vargonis opened 1 month ago
This also works:
julia> sum(I -> get(A, I, zero(eltype(A))), CartesianIndices(A); dims=1)
1×4 Matrix{Float64}:
1.48551 1.92315 1.65579 1.628
The issue appears to be that the init
is being computed as A[zero(CartesianIndex{2})]
, which throws the BoundsError
I'm running the following version: