Re: [Rcpp-devel] Random matrix row and column permutations in RcppEigen

2013-06-02 Thread Kouros Owzar
Hi Dirk On Sat, 1 Jun 2013, Dirk Eddelbuettel wrote: 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 advic

Re: [Rcpp-devel] Random matrix row and column permutations in RcppEigen

2013-06-01 Thread Dirk Eddelbuettel
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

[Rcpp-devel] Random matrix row and column permutations in RcppEigen

2013-06-01 Thread owzar001
Hi Adopting the solution outlined in this post http://stackoverflow.com/questions/15858569/randomly-permute-rows-columns-of-a-matrix-with-eigen I can produce  random column and row permutation replicates of matrices using RcppEigen: permmatrix,eigen::dynamic> ___