Closed JohnPekl closed 2 years ago
Hi @JohnPekl, thank you for reporting the bug.
I found that double type random generators with 32bit rng(e.g. std::mt19937
) throws the bug. You can avoid this bug by using 64bit rng such as std::mt19937_64
instead of std::mt19937
.
I'll fix this bug at the next update. Thank you again for your interest!
I want to random matrix using C++11 RNG such as
std::mt19937
withstd::random_device
. Every time it randoms different numbers. Your example usingRand::P8_mt19937_64 urng{ 42 };
produces the same number if I run in a loop.The following code is working fine (building without any errors) with matrix, vector size is 4. It can also run and return a random matrix.
But if I change the size to 2, 3, or 9 it has an error.
eigenrand\Dists/Basic.h(260): error C2466: cannot allocate an array of constant size 0
NOTE: It happens on Windows, Ubuntu has no problem