[Rcpp-devel] Sample function(s) for inclusion in RcppArmadillo
Dirk Eddelbuettel
edd at debian.org
Thu Nov 15 05:39:05 CET 2012
On 14 November 2012 at 21:25, Christian Gunning wrote:
|
|
| On Wed, Nov 14, 2012 at 6:14 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
|
|
| Thank you, got both emails! Will take a closer look -- we were busy with
| releasing Rcpp 0.10.0 which will rock :)
|
|
| Sorry, I posted to list from wrong address; 0.10.0 looks great. I found the
| copious informational links at the bottom of the announcement very helpful.
|
|
| Would this make sense "upstream" in Armadillo? Or do you want the R RNG for
| reproducibility?
|
|
| I hadn't even thought of trying to push this upstream, but yes, exact
| reproduction of R's behavior was a goal.
|
|
| Also, you may need to add RNGScope() if you use R's RNG.
|
|
|
| Yes, I should have mentioned that in my post. Calling RNGScope() is left to
| the user, since multiple calls to sample() can conceivably happen inside a
| single RNGScope().
With that, maybe best to be included as another example in RcppArmadillo ?
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list