refactor to use an external instance of std::mt19937_64 instead of arma_rng_cxx11

This commit is contained in:
conrad
2021-03-17 15:56:04 +10:00
parent 4044feb7ca
commit dbae094980
5 changed files with 264 additions and 93 deletions
+6 -1
View File
@@ -34,8 +34,13 @@
namespace arma
{
// NOTE: arma_rng_cxx11_instance is kept only for compatibility with earlier versions of armadillo
// TODO: remove arma_rng_cxx11_instance when the major version is bumped
#include "armadillo_bits/arma_rng_cxx11.hpp"
thread_local arma_rng_cxx11 arma_rng_cxx11_instance;
thread_local arma_rng_cxx11 arma_rng_cxx11_instance;
thread_local std::mt19937_64 mt19937_64_instance;
}
#endif