[Numpy-discussion] Core math library in numpy

Neal Becker ndbecker2@gmail....
Tue Feb 24 08:04:42 CST 2009


Pauli Virtanen <pav <at> iki.fi> writes:

...
> One question: doesn't this add one extra function call to all umath 
> functions? Could we do '#define npy_XXX XXX' in the npy_math.h header 
> when the appropriate platform-specified functions are available?

There shouldn't be overhead on modern compilers for simple functions.  On gcc
use __inline__ should eliminate overhead (also, -O3 should automatically
inline).




More information about the Numpy-discussion mailing list