AxisArrays.jl icon indicating copy to clipboard operation
AxisArrays.jl copied to clipboard

return default value such as 0 or NaN instead of throwing BoundsError

Open gszep opened this issue 3 years ago • 0 comments

Is there a way to return a default value such as NaN or 0 instead of throwing a BoundsError when there is no value within array a in the vicinity of a given index? Similar to the behaviour of DefaultDict and DefaultOrderedDict · DataStructures.jl

gszep avatar Apr 17 '22 10:04 gszep