[SciPy-dev] Re: [Numpy-discussion] scipy core now builds from svn

Fernando Perez Fernando.Perez at colorado.edu
Thu Sep 15 16:19:05 CDT 2005

Travis Oliphant wrote:

> This is to officially announce that the new replacement for Numeric 
> (scipy_core) is available at SVN.  Read permission is open to everyone 
> so a simple checkout:
> svn co http://svn.scipy.org/svn/scipy_core/branches/newcore newcore 

Great news, congratulations and many thanks!

> There is a script in newcore/scipy/base/convertcode.py  that will take 
> code written for Numeric (or numerix) and convert it to code for the new 
> scipy base object.  This code is not foolproof, but it takes care of the 
> minor incompatibilities (a few search and replaces are done).   The 
> compatibility issues are documented (mostly in the typecode characters 
> and a few method name changes).   The one bigger incompatibility is that 
> a.flat does something a little different (a 1-d iterator object).  The 
> convert code script changes uses of a.flat that are not indexing or set 
> attribute related to a.ravel()

Quick question: is it still OK to pass a.flat to weave.inline'd code?  I use 
this a lot, to do fast operations over arrays where I don't care about the 
shape but only about the elements.  Or should one use .ravel() for such cases 
from now on?  And if so, does the ravel call incur a significant performance 
hit compared to the old (fast but brittle, since .flat can fail) approach?

Thanks for any insight.



More information about the Scipy-dev mailing list