AxisArrays.jl
AxisArrays.jl copied to clipboard
return default value such as 0 or NaN instead of throwing BoundsError
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