R 3.6.x Update for Sample Extension
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reading inst/include/RcppArmadillo/Alt_R_RNG.h and the sample extension at inst/include/RcppArmadilloExtensions/sample.h. Compare their RNG handling with the linked Base R commits covering rejection sampling, R_unif_rand(), and Walker sampling. Done means the sample extension follows the required R 3.6.x behavior, including the mentioned Rcpp local variant.
Written by the indexing model from the issue text.
Description
Glancing over the RcppArmadillo code, the Alt RNG setup directly uses R's RNG for uniform (e.g. Rf_runif(). However, the extension code in inst/RcppArmadilloExtension/sample.h does not.
So, likely this will need a patch that mirrors what is available in Base R. c.f. Implementation changes.
- Rejection sampling routine
- Implementation of
R_unif_rand()in existing R code - Walker sampling changes
This will likely be needed with Rcpp's local variant as well designed by @nathan-russell.
- Dominant language
- C++
- Stars
- 211
- Forks
- 54
- Avg merge
- 5m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RcppCore/RcppArmadillo
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
RcppCore/RcppArmadillo#454 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
RcppCore/RcppArmadillo#364 · 10 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
RcppCore/RcppArmadillo#299 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
RcppCore/RcppArmadillo#268 · 3 reactions ·
-
enhancement help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
RcppCore/RcppArmadillo#263 · 3 comments · 2 reactions ·
All issues in RcppCore/RcppArmadillo
Similar issues
-
Website Doc Typo Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 92/100
autowarefoundation/autoware_universe#13413 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
automated-analysis bug memory-safety
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100