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:

5.03 score 1 stars 14 packages 6 scripts 1.7k downloads 9 exports 0 dependencies

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

TargetResultDate
Doc / VignettesOKNov 16 2024
R-4.5-win-x86_64OKNov 16 2024
R-4.5-linux-x86_64OKNov 16 2024
R-4.4-win-x86_64OKNov 16 2024
R-4.4-mac-x86_64OKNov 16 2024
R-4.4-mac-aarch64OKNov 16 2024
R-4.3-win-x86_64OKNov 16 2024
R-4.3-mac-x86_64OKNov 16 2024
R-4.3-mac-aarch64OKNov 16 2024

Exports:.preciseSumsPtrfsumkahanSumneumaierSumpairwiseSumpsProdpsSetProdpsSetSumpsSum

Dependencies: