This is a clever solution for handling the boundary. I didn’t realize get
worked for arrays. But Inf
as default value seems like recipe for type instabilities. How about
get(A, index + d, A[index])
and
get(A, newindex, best)
?
This is a clever solution for handling the boundary. I didn’t realize get
worked for arrays. But Inf
as default value seems like recipe for type instabilities. How about
get(A, index + d, A[index])
and
get(A, newindex, best)
?