Package: PreciseSums 0.7

Matthew Fidler

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.

Authors: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]

PreciseSums_0.7.tar.gz
PreciseSums_0.7.zip(r-4.5)PreciseSums_0.7.zip(r-4.4)PreciseSums_0.7.zip(r-4.3)
PreciseSums_0.7.tgz(r-4.4-x86_64)PreciseSums_0.7.tgz(r-4.4-arm64)PreciseSums_0.7.tgz(r-4.3-x86_64)PreciseSums_0.7.tgz(r-4.3-arm64)
PreciseSums_0.7.tar.gz(r-4.5-noble)PreciseSums_0.7.tar.gz(r-4.4-noble)
PreciseSums_0.7.tgz(r-4.4-emscripten)PreciseSums_0.7.tgz(r-4.3-emscripten)
PreciseSums.pdf |PreciseSums.html
PreciseSums/json (API)
NEWS

# Install 'PreciseSums' in R:
install.packages('PreciseSums', repos = c('https://nlmixr2.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/nlmixr2/precisesums/issues

On CRAN:

9 exports 1 stars 4.94 score 0 dependencies 13 dependents 6 scripts 1.5k downloads

Last updated 26 days agofrom:2f3c623a3c. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 17 2024
R-4.5-win-x86_64OKSep 17 2024
R-4.5-linux-x86_64OKSep 17 2024
R-4.4-win-x86_64OKSep 17 2024
R-4.4-mac-x86_64OKSep 17 2024
R-4.4-mac-aarch64OKSep 17 2024
R-4.3-win-x86_64OKSep 17 2024
R-4.3-mac-x86_64OKSep 17 2024
R-4.3-mac-aarch64OKSep 17 2024

Exports:.preciseSumsPtrfsumkahanSumneumaierSumpairwiseSumpsProdpsSetProdpsSetSumpsSum

Dependencies: