Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rcpp? #1

Open
mmaechler opened this issue May 17, 2021 · 1 comment
Open

Rcpp? #1

mmaechler opened this issue May 17, 2021 · 1 comment

Comments

@mmaechler
Copy link

Is it necessary for you to use Rcpp instead of plain C (which is rather faster than slower)?
I'm asking because this will make any back porting to Matrix impossible, AFAICS.

@david-cortes
Copy link
Owner

Rcpp is not really required, but unfortunately C++ is, since it brings some benefits that do make a difference in timings:

  • Hashmaps
  • Dynamic vectors
  • Faster argsorting
  • Faster binary search

Also makes it easier to have functions for different types using templates, compared to putting C functions in headers and playing with macros.

But there's of course workarounds for them, with some penalty in complexity and speed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants