pythonic array subsetting

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
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.

Bye,
bearophile



More information about the Python-list mailing list