
Armadillo is a powerful and expressive C++ template library for linear algebra and scientific computing. It aims towards a good balance between speed and ease of use, has a syntax deliberately close to Matlab, and is useful for algorithm development directly in C++, or quick conversion of research code into production environments. RcppArmadillo integrates this library with the R environment and languageāand is widely used by (currently) 1396 other packages on CRAN, downloaded 53.2 million times (per the partial logs from the cloud mirrors of CRAN), and the CSDA paper (preprint / vignette) by Conrad and myself has been cited 743 times according to Google Scholar.
This versions updates to the new 15.8.0 upstream Armadillo release made today. As detailed below, it expands the API a little but also updates a few interfaces including one related to sparse matrix operations. As usual, we ran two full reverse-depdency checks against the nearly 1400 packages. This resulted in one additional small change set upstream (and the second reverse-dependency run) along with a small and focusses extension on our side which Kevin very kindly and promptly offered after I was scratching my chin over what may be needed. The package has also already been updated for Debian, built for r2u and should build shortly in r-universe as well as at CRAN for the different binary releases. We also note that we once again had a perfectly clean CRAN: all incoming tests, including full reverse dependencies, passed without the need for a follow-up email and were 100% automated. Smooth sailing!
All changes since the last CRAN release follow.
Changes in RcppArmadillo version 15.8.0-1 (2026-11-22)
Upgraded to Armadillo release 15.8.0 (Medium Roast Chill)
Added
solve_factoriserclass for reusing matrix factorisation to solve systems of linear equationsAdded
solve_lse()for solving linear least squares with equality constraintsMore efficient handling of
spones()Reworked detection of aliasing for cubes
Added
wrap()support for different sparse matrix expressions (Kevin Ushey in #514 fixing #513)
Courtesy of my CRANberries, there is a diffstat report relative to previous release. More detailed information is on the RcppArmadillo page. Questions, comments etc should go to the rcpp-devel mailing list off the Rcpp R-Forge page.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. If you like this or other open-source work I do, you can sponsor me at GitHub.