PreciseSums: Accurate Floating Point Sums and Products

Most of the time floating point arithmetic does approximately the right thing. When adding sums or having products of numbers that greatly differ in magnitude, the floating point arithmetic may be incorrect. This package implements the Kahan (1965) sum <doi:10.1145/363707.363723>, Neumaier (1974) sum <doi:10.1002/zamm.19740540106>, pairwise-sum (adapted from 'NumPy', See Castaldo (2008) <doi:10.1137/070679946> for a discussion of accuracy), and arbitrary precision sum (adapted from the fsum in 'Python' ; Shewchuk (1997) <https://people.eecs.berkeley.edu/~jrs/papers/robustr.pdf>). In addition, products are changed to long double precision for accuracy, or changed into a log-sum for accuracy.

Version: 0.7
Depends: R (≥ 3.2)
Suggests: testthat
Published: 2024-09-17
DOI: 10.32614/CRAN.package.PreciseSums
Author: Matthew Fidler [aut, cre, cph], Raymond Hettinger [cph, aut], Jonathan Shewchuk [cph, aut], Julian Taylor [cph, aut], Nathaniel Smith [cph, aut], NumPy Team [cph], Python Team [cph]
Maintainer: Matthew Fidler <matthew.fidler at gmail.com>
BugReports: https://github.com/nlmixr2/PreciseSums/issues/
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/nlmixr2/PreciseSums
NeedsCompilation: yes
Materials: NEWS
CRAN checks: PreciseSums results

Documentation:

Reference manual: PreciseSums.pdf

Downloads:

Package source: PreciseSums_0.7.tar.gz
Windows binaries: r-devel: PreciseSums_0.7.zip, r-release: PreciseSums_0.7.zip, r-oldrel: PreciseSums_0.7.zip
macOS binaries: r-release (arm64): PreciseSums_0.7.tgz, r-oldrel (arm64): PreciseSums_0.7.tgz, r-release (x86_64): PreciseSums_0.7.tgz, r-oldrel (x86_64): PreciseSums_0.7.tgz
Old sources: PreciseSums archive

Reverse dependencies:

Reverse imports: ciuupi2, rxode2
Reverse linking to: rxode2

Linking:

Please use the canonical form https://CRAN.R-project.org/package=PreciseSums to link to this page.