cpp11armadillo
An 'Armadillo' Interface
Provides function declarations and inline function definitions that facilitate communication between R and the 'Armadillo' 'C++' library for linear algebra and scientific computing. This implementation is detailed in Vargas Sepulveda and Schneider Malamud (2024) <doi:10.1016/j.softx.2025.102087>.
README
# How to use cpp11armadillo?
## Read the documentation
The [basic examples](https://pacha.dev/cpp11armadillo/articles/basic-usage.html)
should be enough to get you started.
## Test the package
1. Open `./dev/01_load_or_install.R` and run it.
2. Open `./src/01_ols.cpp`, inspect the OLS functions.
3. Create your own functions in `./02_your_functions.cpp`.
4. Run `devtools::load_all()` before testing your functions, and then add tests
to `./dev/02_test.R` and run it.
5. Run `./dev/03_readme_and_license.R` to add a README and license.
6. Run `devtools::install()` in `./dev/01_load_or_install.R` to install the
package locally when you are ready.
7. The package template includes a configuration with a predefined number of
cores to use. You can change this value by doing this:
Unix: Edit `./src/Makevars.in` to set `DARMA_OPENMP_THREADS` to another
value or edit `./configure` to change `PKG_NCORES` to another value.
Windows: Edit `./src/Makevars.win` to set `DARMA_OPENMP_THREADS` to another
value.
## Additional documentation
1. [Member functions and variables](https://pacha.dev/cpp11armadillo/articles/member-functions-and-variables.html)
2. [Matrix, vector, cube and field classes](https://pacha.dev/cpp11armadillo/articles/matrix-vector-cube-and-field-classes.html)
3. [Generated vectors, matrices, and cubes](https://pacha.dev/cpp11armadillo/articles/generated-vectors-matrices-cubes.html)
4. [Functions of vectors, matrices, and cubes](https://pacha.dev/cpp11armadillo/articles/functions-of-vector-matrices-cubes.html)
5. [Fitting regressions with Armadillo](https://pacha.dev/cpp11armadillo/articles/linear-model.html)
For specific Econometrics examples, see the [hansen package](https://pacha.dev/hansen/) documentation.
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
0.5.4 |
2026-04-09 windows/windows R-4.5 | cpp11armadillo_0.5.4.zip |
1.4 MiB |