Package: RcppArmadillo

Dirk Eddelbuettel

RcppArmadillo: 'Rcpp' Integration for the 'Armadillo' Templated Linear Algebra Library

'Armadillo' is a templated C++ linear algebra library (by Conrad Sanderson) that aims towards a good balance between speed and ease of use. Integer, floating point and complex numbers are supported, as well as a subset of trigonometric and statistics functions. Various matrix decompositions are provided through optional integration with LAPACK and ATLAS libraries. The 'RcppArmadillo' package includes the header files from the templated 'Armadillo' library. Thus users do not need to install 'Armadillo' itself in order to use 'RcppArmadillo'. From release 7.800.0 on, 'Armadillo' is licensed under Apache License 2; previous releases were under licensed as MPL 2.0 from version 3.800.0 onwards and LGPL-3 prior to that; 'RcppArmadillo' (the 'Rcpp' bindings/bridge to Armadillo) is licensed under the GNU GPL version 2 or later, as is the rest of 'Rcpp'.

Authors:Dirk Eddelbuettel, Romain Francois, Doug Bates, Binxiang Ni, and Conrad Sanderson

RcppArmadillo.pdf |RcppArmadillo.html
RcppArmadillo/json (API)

# Install RcppArmadillo in R:
install.packages('RcppArmadillo', repos = c('', ''))

Peer review:

Bug tracker:

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library



10 exports 192 stars 16.12 score 1 dependencies 3203 dependents 568.2k downloads

Last updated 8 days agofrom:37461ba36472305c699263afc229919d37daa5e3




Rendered fromRcppArmadillo-intro.Rnwusingutils::Sweaveon Jun 10 2024.

Last update: 2020-02-11
Started: 2013-08-13


Rendered fromRcppArmadillo-sparseMatrix.Rnwusingutils::Sweaveon Jun 10 2024.

Last update: 2020-02-11
Started: 2017-07-31

Readme and manuals

Help Manual

Help pageTopics
R and Armadillo IntegrationRcppArmadillo-package RcppArmadillo RcppArmadilloExample
Report (or Set) Maximum Number of OpenMP Threadsarmadillo_get_number_of_omp_threads armadillo_set_number_of_omp_threads
Set the Armadillo Random Number Generator to the given valuearmadillo_set_seed
Set the Armadillo Random Number Generator to a random valuearmadillo_set_seed_random
Throttle (or Reset) (Rcpp)Armadillo to Two Coresarmadillo_reset_cores armadillo_throttle_cores
Report the version of Armadilloarmadillo_version
Bare-bones linear model fitting functionfastLm fastLm.default fastLm.formula fastLmPure
Create a skeleton for a new package that intends to use RcppArmadilloRcppArmadillo.package.skeleton