aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/rand.cpp
Commit message (Collapse)AuthorAge
* Bump up rand histogram threshold.Gravatar Antonio Sanchez2021-03-10
| | | | | | | The previous one sometimes fails for MSVC which has a poor random number generator. Fixes #2182
* Fix rand test for MSVC.Gravatar Antonio Sanchez2021-01-07
| | | | | | | | MSVC's uniform random number generator is not quite as uniform as others, requiring a slightly wider threshold on the histogram test. After inspecting histograms for several runs, there's no obvious bias -- just some bins end up having slightly more less elements (often > 2% but less than 2.5%).
* Get rid of EIGEN_TEST_FUNC, unit tests must now be declared with ↵Gravatar Gael Guennebaud2018-07-17
| | | | | | | | | EIGEN_DECLARE_TEST(mytest) { /* code */ }. This provide several advantages: - more flexibility in designing unit tests - unit tests can be glued to speed up compilation - unit tests are compiled with same predefined macros, which is a requirement for zapcc
* Fix possible overflow and biais in integer random generatorGravatar Gael Guennebaud2016-08-23
|
* Add debug output for random unit testGravatar Gael Guennebaud2016-04-13
|
* Specified signedness of char type in test so that test passesGravatar Doug Kwan2015-09-28
| | | | consistently on different targets.
* Fix random unit test for 32bits systems.Gravatar Gael Guennebaud2015-03-19
|
* Improve random number generation for integer and add unit testGravatar Gael Guennebaud2015-03-19