How to set random seed using RcppParallel and RcppArmadillo to permutation

Offen
#205 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
20/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
cpp, r

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C++
Sterne
173
Forks
60
Ø Merge
1 Std. 55 Min.
Gemergte PRs (30 T.)
2

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus RcppCore/RcppParallel

Alle Issues in RcppCore/RcppParallel

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.