Abstract
This initial chapter provides a first introduction to Rcpp. It uses a somewhat slower pace and generally more gentle approach than the rest of the book in order to show key concepts which are revisited and discussed in more depth throughout the remainder. So the aim of this chapter is to cover a fairly wide range of material, but at a more introductory level for an initial overview. Two larger examples are studied in detail. We first compute the Fibonacci sequence in three different ways in two languages. Second, we simulate from a multivariate dynamic model provided by a vector autoregression.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Chambers JM (1998) Programming with Data: A Guide to the S Language. Springer, Heidelberg, ISBN 978-0387985039
Kusnierczyk W (2012) rbenchmark: Benchmarking routine for R. URL http://CRAN.R-Project.org/package=rbenchmark, R package version 1.0
Meyers S (2005) Effective C++: 55 Specific Ways to Improve Your Programs and Designs, 3rd edn. Addison-Wesley Professional, ISBN 978-0321334879
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
Sklyar O, Murdoch D, Smith M, Eddelbuettel D, François R (2012) inline: Inline C, C++, Fortran function calls from R. URL http://CRAN.R-Project.org/package=inline, R package version 0.3.10
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 The Author
About this chapter
Cite this chapter
Eddelbuettel, D. (2013). A Gentle Introduction to Rcpp. 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_1
Download citation
DOI: https://doi.org/10.1007/978-1-4614-6868-4_1
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-6867-7
Online ISBN: 978-1-4614-6868-4
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)