octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61143] Functions sum and mean returns wrong a


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #61143] Functions sum and mean returns wrong answer for single precision input
Date: Sat, 11 Sep 2021 16:55:48 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #12, bug #61143 (project octave):

>From the wiki page

<<<
Although there are other techniques such as Kahan summation that typically
have even smaller round-off errors, pairwise summation is nearly as good
(differing only by a logarithmic factor) while having much lower computational
cost—it can be implemented so as to have nearly the same cost (and exactly
the same number of arithmetic operations) as naive summation.
>>>

and 

<<<<
Pairwise summation is the default summation algorithm in NumPy[8] and the
Julia technical-computing language,[9] where in both cases it was found to
have comparable speed to naive summation (thanks to the use of a large base
case).

Other software implementations include the HPCsharp library[10] for the C
Sharp language and the standard library summation[11] in D.
>>>>


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61143>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]