Use a "double-double" accumulator, a/k/a Kahan summation,
in the SUM intrinsic in the runtime for real & complex.
This seems to be the best-recommended technique for reducing
error, as opposed to the initial implementation of SUM's
distinct accumulators for positive and negative items.
Details
Details
- Reviewers
jeanPerier - Commits
- rGc375ec861329: [flang] Use a "double-double" accumulator in SUM
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo