English

Welding R and C++: A Tale of Two Programming Languages

Mathematical Software 2025-02-25 v2 Programming Languages Computation

Abstract

This article compares `cpp11armadillo` and `cpp11eigen`, new R packages that integrate the powerful Armadillo and Eigen C++ libraries for linear algebra into the R programming environment. This article provides a detailed comparison between Armadillo and Eigen speed and syntax. The goal of these packages is to simplify a part of the process of solving bottlenecks by using C++ within R, these offer additional ease of integration for users who require high-performance linear algebra operations in their R workflows. This document aims to discuss the tradeoff between computational efficiency and accessibility.

Keywords

Cite

@article{arxiv.2409.00568,
  title  = {Welding R and C++: A Tale of Two Programming Languages},
  author = {Mauricio Vargas Sepulveda},
  journal= {arXiv preprint arXiv:2409.00568},
  year   = {2025}
}

Comments

21 pages, 0 figures, 13 tables

R2 v1 2026-06-28T18:30:14.966Z