mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-12 19:20:36 +08:00
Bump up rand histogram threshold.
The previous one sometimes fails for MSVC which has a poor random number generator. Fixes #2182
This commit is contained in:
parent
d098c4d64c
commit
b271110788
@ -51,7 +51,7 @@ template<typename Scalar> void check_histogram(Scalar x, Scalar y, int bins)
|
||||
Scalar r = check_in_range(x,y);
|
||||
hist( int((int64(r)-int64(x))/divisor) )++;
|
||||
}
|
||||
VERIFY( (((hist.cast<double>()/double(f))-1.0).abs()<0.025).all() );
|
||||
VERIFY( (((hist.cast<double>()/double(f))-1.0).abs()<0.03).all() );
|
||||
}
|
||||
|
||||
EIGEN_DECLARE_TEST(rand)
|
||||
|
Loading…
x
Reference in New Issue
Block a user