pythonic array subsetting

bearophileHUGS at bearophileHUGS at
Tue Feb 17 04:27:04 EST 2009

Nick Matzke:
> I have to do this hundreds of times, so speed would be useful.

Try to create a 2D array with NumPy, and then slice it. Note that
slicing syntax has a "stride" too.


More information about the Python-list mailing list