Skip to main content

RcppArmadillo

  • Chapter
  • First Online:
Seamless R and C++ Integration with Rcpp

Part of the book series: Use R! ((USE R,volume 64))

Abstract

The RcppArmadillo package implements an easy-to-use interface to the Armadillo library. Armadillo is an excellent, modern, high-level C++library aiming to be as expressive to use as a scripting language while offering high-performance code due to modern C++design including template meta- programming.RcppArmadillo brings all these features to the Renvironment by leaning on the Rcpp interface. This chapter introduces Armadillo and provides a motivating example via a faster replacement function for fitting linear models before it discusses a detailed case study of implementing a Kalman filter in RcppArmadillo.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  • Eddelbuettel D, Sanderson C (2013) RcppArmadillo: Accelerating R with high-performance C++ linear algebra. Computational Statistics and Data Analysis (in press)

    Google Scholar 

  • François R, Eddelbuettel D, Bates D (2012) RcppArmadillo: Rcpp integration for Armadillo templated linear algebra library. URL http://CRAN.R-Project.org/package=RcppArmadillo, R package version 0.3.4.4

  • Kusnierczyk W (2012) rbenchmark: Benchmarking routine for R. URL http://CRAN.R-Project.org/package=rbenchmark, R package version 1.0

  • Sanderson C (2010) Armadillo: An open source C++ algebra library for fast prototyping and computationally intensive experiments. Tech. rep., NICTA, URL http://arma.sf.net

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 The Author

About this chapter

Cite this chapter

Eddelbuettel, D. (2013). RcppArmadillo. In: Seamless R and C++ Integration with Rcpp. Use R!, vol 64. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-6868-4_10

Download citation

Publish with us

Policies and ethics