RcppCore / RcppCore/RcppParallel
How to set random seed using RcppParallel and RcppArmadillo to permutation
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 173
- Forks
- 60
- Avg merge
- 1h 55m
- Merged PRs (30d)
- 2
Description
Good Day
I am using RcppParallel and the shuffle function of RcppArmadillo to shuffle vec, But the result is not repeatable even I used the set.seed of R or the withr::with_seed or arma::set_seed in the C++ codes. To be reproducible, is there a function like set.seed of R base to do this? Thank you.
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.
Research direction
No files, tests, or entry points are mentioned. Start by reviewing the RcppParallel and RcppArmadillo documentation for shuffle and random-number seeding, then compare their behavior with R's set.seed and withr::with_seed. Done means establishing a documented, reproducible seeding approach or clearly identifying the required support.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, r
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100