SIGN IN SIGN UP

gh-122234: fix accuracy issues for sum() (#122236)

* Use compensated summation for complex sums with floating-point items.
  This amends #121176.

* sum() specializations for floats and complexes now use
  PyLong_AsDouble() instead of PyLong_AsLongAndOverflow() and
  compensated summation as well.
S
Sergey B Kirpichev committed
169e7138ab84db465b6bf28e6c1dc6c39dbf89f4
Parent: bc93923
Committed by GitHub <noreply@github.com> on 7/29/2024, 3:56:40 AM