block by duhaime e4706906cf2ec57b9f82643c5cd405c0

Multidimensional sliding window in numpy

slide.py