ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> scipy-user
scipy-user
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved