Best way to shift a window around a multidimensional Array?

This is essentially the same as the problem discussed here: Matrix Free Differentiation - #3 by stevengj

3 Likes