[Numpy-discussion] math.fsum() like ufunc for numpy

Daniele Nicolodi daniele at grinta.net
Mon Dec 2 12:44:25 EST 2013


Hello,

there would be interest in adding a floating point accurate summation
function like Python's math.fsum() in the form of an ufunc to NumPy?

I had a look at the algorithm
(http://code.activestate.com/recipes/393090-binary-floating-point-summation-accurate-to-full-p/)
and it looks quite straightforward to implement. I can try to submit a
patch for it.

Cheers,
Daniele



More information about the NumPy-Discussion mailing list