[Numpy-discussion] math.fsum() like ufunc for numpy
jtaylor.debian at googlemail.com
Mon Dec 2 13:11:25 EST 2013
related this PR attempts to improve the accuracy of summation:
but math.fsum gives the exact result so it would a valuable ufunc even
when that PR is merged.
python3.4 will have yet another accurate summation in the statistics module:
On 02.12.2013 19:07, Nathaniel Smith wrote:
> I think that would be great. Technically what you'd want is a "gufunc".
> On Mon, Dec 2, 2013 at 9:44 AM, Daniele Nicolodi <daniele at grinta.net> wrote:
>> 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
>> and it looks quite straightforward to implement. I can try to submit a
>> patch for it.
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
More information about the NumPy-Discussion