Hi Kouros,

On 1 June 2013 at 16:13, [email protected] wrote:
| The problem is that I cannot (or do not know how to) use the R random seeding
| mechanism to make the permutation resampling process
| reproducible. I would appreciate any advice on this matter (e.g.,  replacing
| std::random_shuffle with a suitable Rcpp function or to be  pointed to
| existing solutions ). 

No direct solution for you but 

  a) you can probably seed the standard library RNGs as well (which may just
     need a helper function) 

  b) you can look at the very nice sample() function contributed to
     RcppArmadillo and see if you can cook something similar up for
     RcppEigen.

There are posts on the Rcpp Gallery about b).

Dirk

-- 
Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to