[SciPy-user] Best/Safest way to parse NumPy array in C extension?

Fernando Perez fperez.net at gmail.com
Tue Dec 12 15:11:04 CST 2006

On 12/12/06, Lou Pecora <lou_boog2000 at yahoo.com> wrote:

> I will have to learn how to check for contiguous in
> Python.


In [1]: import numpy as N

In [2]: a=N.arange(10)

In [3]: b=a[::2]

In [4]: a.flags.contiguous
Out[4]: True

In [5]: b.flags.contiguous
Out[5]: False



More information about the SciPy-user mailing list