R 3.6.x Update for Sample Extension

Offen
#250 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
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
cpp, r
Bereich
tooling

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement help wanted

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.

This will likely be needed with Rcpp's local variant as well designed by @nathan-russell.

Vorherrschende Sprache
C++
Sterne
211
Forks
54
Ø Merge
5 Min.
Gemergte PRs (30 T.)
1

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/RcppArmadillo

Alle Issues in RcppCore/RcppArmadillo

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

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