Skip to content
Prev 5406 / 10988 Next

[Rcpp-devel] Mersenne Twister in RcppArmadillo?

Beautiful Conrad! 

This is exactly what helps to make individual random number generation easier in Armadillo/RcppArmadillo! Up to now I use solely the standard C++ RNG engine (std::mt19937) and run a loop. Now I can just use .imbue on a matrix and do not have to care about indices and index bounds. Does it work with iterators inside of .imbue? Do you think it is faster than a simple for loop? Let's wait for Dirk's experiment for the Rcpp gallery.  

Best

Simon
On Mar 2, 2013, at 4:09 PM, Conrad S <conradsand.arma at gmail.com> wrote: