[Rcpp-devel] Mersenne Twister in RcppArmadillo?

Yan Zhou zhouyan at me.com
Mon Feb 11 13:17:52 CET 2013

I don't think it is that simple. Boost.Random depends on a lot of things. Pull in Boost.Random means pull in Boost.TypeTraits, Boost.MPL and a lot of other things. There is tool for extract part of Boost, BCP. I tried to incorporate Boost.Random into my own library once. But the truth is that pull in Boost.Random and all the results was not pretty. You also need to keep track update of Boost, which is an unnecessary burden IMHO.


On Feb 11, 2013, at 12:12 PM, Darren Cook <darren at dcook.org> wrote:

>> While I'd like to incorporate a Mersenne-Twister random number
>> generator directly in Armadillo, it would either add a dependency on
>> Boost, or on C++11.  Boost might not be available on a user's system,
>> and the degree of support for C++11...
> I believe Boost.Random is header-only, and the boost license was
> designed to be liberal. So embedding just the parts of Boost.Random that
> you need in Armadillo is a possibility.
> Darren
> -- 
> Darren Cook, Software Researcher/Developer
> http://dcook.org/work/ (About me and my work)
> http://dcook.org/blogs.html (My blogs and articles)
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

More information about the Rcpp-devel mailing list