[Numpy-discussion] numpy.asum ?

Sebastian Haase seb.haase@gmail....
Mon Oct 5 10:56:27 CDT 2009


Hi,

Is this a dumb question ?
Why is there no np.asum() equivalent to np.sum()  - like amax() to max() ?

Another question: what does it mean that amax() (and max()) is a
"function" while maximum() is a ufunc !?

>>> N.max
<function amax at 0x14071b8>
>>> N.maximum
<ufunc 'maximum'>
>>> N.amax
<function amax at 0x14071b8>

Is there a performance difference connected to this ?


Cheers,
Sebastian Haase


More information about the NumPy-Discussion mailing list