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: Michael Leitner
Subject: [Octave-bug-tracker] [bug #61143] Functions sum and mean returns wrong answer for single precision input
Date: Sat, 11 Sep 2021 17:59:49 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Firefox/60.0

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

The previous comment was for single x, isn't it? Because in this case
"extra"=="double" according to the documentation, which is essentially equally
fast as native summation. And in this case I am with you. But for double x,
"extra" seems to imply Kahan summation, which is noticeably slower. Also for
doubles such effects as reported can happen (only for much larger arguments of
course), and here I would propose pairwise summation as default.

    _______________________________________________________

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]