|
From: Mark H. <ma...@mi...> - 2006-01-23 15:59:24
|
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 |