Re: [SciPy-user] Best/Safest way to parse NumPy array in C extension?
by Fernando Perez other posts by this author
Dec 12 2006 1:11PM messages near this date
Re: [SciPy-user] strange error in integrate.romb
|
[SciPy-user] How to delete attachments sent to the SciPy Wiki?
On 12/12/06, Lou Pecora <lou_boog2000@[...].com> wrote:
> I will have to learn how to check for contiguous in
> Python.
Easy:
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
Cheers,
f
_______________________________________________
SciPy-user mailing list
SciPy-user@[...].org
http://projects.scipy.org/mailman/listinfo/scipy-user
Thread:
Fernando Perez
Lou Pecora
Fred
Lou Pecora
Fred
Robert Kern
Lou Pecora
Lou Pecora
|