[Numpy-discussion] Speed performance on array constant set

Mark Heslep mark at mitre.org
Mon Jan 23 08:00:02 EST 2006


Travis Oliphant wrote:

> First of all,  try using NumPy instead of Numarray:    import numpy as na
>
Ive got some NumArray C API investment in the typemaps.  Is the C high 
level API the same, ie. NA_Input, etc?  I havnt found the C API docs on 
the web site.

> Second:   use math (i.e.   a += 7)
>
> Third:   There are specialized fill routines .fill()  in numpy and a 
> simliar routine in Numarray that can be faster then indexing. 

Im happy to help out on the optimization of .fill if needed

Mark






More information about the NumPy-Discussion mailing list