pythonic array subsetting

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Tue Feb 17 10:27:04 CET 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.

Bye,
bearophile



More information about the Python-list mailing list