Provides efficient tools for calculating Stirling numbers of the second kind and their logarithms. Includes an exact arbitrary-precision implementation using 'gmp' that avoids numerical cancellation, a fast C++ backend with internal caching for log-scale calculations, and Temme's asymptotic approximation for very large inputs.
| Version: | 0.2.0 |
| Depends: | R (≥ 4.1.0) |
| Imports: | gmp, Rcpp |
| LinkingTo: | Rcpp |
| Suggests: | testthat (≥ 3.0.0) |
| Published: | 2026-05-05 |
| DOI: | 10.32614/CRAN.package.logStirling2 (may not be active yet) |
| Author: | Jon Blood [aut, cre] |
| Maintainer: | Jon Blood <jblood94 at gmail.com> |
| License: | GPL (≥ 3) |
| NeedsCompilation: | yes |
| Materials: | README |
| CRAN checks: | logStirling2 results |
| Package source: | logStirling2_0.2.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: logStirling2_0.2.0.zip, r-oldrel: not available |
| macOS binaries: | r-release (arm64): logStirling2_0.2.0.tgz, r-oldrel (arm64): logStirling2_0.2.0.tgz, r-release (x86_64): logStirling2_0.2.0.tgz, r-oldrel (x86_64): logStirling2_0.2.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=logStirling2 to link to this page.