https://github.com/pachadotdev/cpp-for-r-users
A collection of my very own C++ errors and how I try to solve them
https://github.com/pachadotdev/cpp-for-r-users
cpp r
Last synced: 4 months ago
JSON representation
A collection of my very own C++ errors and how I try to solve them
- Host: GitHub
- URL: https://github.com/pachadotdev/cpp-for-r-users
- Owner: pachadotdev
- License: other
- Created: 2023-09-15T21:33:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-16T22:30:59.000Z (over 2 years ago)
- Last Synced: 2024-10-11T19:21:17.598Z (over 1 year ago)
- Topics: cpp, r
- Language: C++
- Homepage: https://pacha.dev/cpp-for-r-users
- Size: 1.32 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Learning C++ as an R user
Here I show how to achieve some common tasks by integrating R and C++.
All the examples here use the cpp11 package, which is a header-only library that
provides a C++11 interface to R's C API.
## Contents
The examples here are meant to be *instructional*, and the goal is to be
clear and simple, not to be efficient except when it is clearly stated. For
example, the OLS example uses a naive approach to solve the problem, which is
**not** the way R's `lm()` function does it. See
[this blog post](https://pacha.dev/blog/2023/06/05/cpp11-omp/).
Please see the respective README files for more information.
### [cpp11dummyols](#cpp11dummyols)
- [x] Integers
- [x] Doubles
- [x] Doubles matrices
- [x] Conditionals
### [cpp11omp](#cpp11omp)
- [x] Integers
- [x] Doubles
- [x] Lists
- [x] Loops (for)
- [x] OpenMP parallelization
### [cpp11gaussjordan](#cpp11gaussjordan)
- [x] Integers
- [x] Doubles
- [x] Doubles matrices
- [x] Conditionals
- [x] Loops (for)
- [x] Vendoring
### [cpp11simplexphase2](#cpp11simplexphase2)
- [x] Integers
- [x] Doubles
- [x] Doubles matrices
- [x] Conditionals
- [x] Loops (for and while)
- [x] Messages