Changelog
Source:NEWS.md
rxode2ll 2.0.15
- Fix signed integer overflow: loop indices in
llikXxxInternal()Rcpp functions changed frominttoR_xlen_t; previously vectors longer than ~500 million elements (>4 GB) could cause undefined behavior due tointoverflow when assigned fromx.size(). - Fix undefined behavior from unchecked
double-to-intcasts for discrete distribution count arguments (x,size) exceedingINT_MAX(2147483647); the five affected C-API functions (rxLlikPois,rxLlikBinom,rxLlikGeom,rxLlikNbinom,rxLlikNbinomMu) now returnNAinstead of invoking undefined behavior for out-of-range inputs. - Fix type correctness for loop indices in Stan autodiff functor
operator()methods across all 15 distributions: changed frominttoEigen::Indexto match the return type ofEigen::VectorXd::size(). - Add comprehensive derivative validation tests using central finite differences for all 14 differentiable distributions.
- Add integer overflow bounds-checking tests for all 5 discrete distributions, calling the
*Internal()C++ functions directly to bypass R-level input validation. - Add a
skip()-guarded large-vector test that documents theR_xlen_tfix and can be run manually on systems with >4 GB free RAM.
rxode2ll 2.0.11
CRAN release: 2023-03-17
- Update compile flags based on CRAN C++17 requirement (Issue #5)
rxode2ll 2.0.9
CRAN release: 2022-09-29
- Initial release, exports log-likelihood functions from ‘stan’ and their derivatives to R and C. This allows linkage in ‘rxode2’ to allow generalized log-likelihood in ‘nlmixr2’.
- This is a data like package and is likely not to change very much over time.
- Added a
NEWS.mdfile to track changes to the package.