mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-18 19:30:38 +08:00
Fixed bug which (extremely rarely) could end in an infinite loop
This commit is contained in:
parent
642dddcce2
commit
4247d35d4b
@ -69,7 +69,7 @@ template<int SizeAtCompileType> void mixingtypes(int size = SizeAtCompileType)
|
||||
double epsd = std::sqrt(std::numeric_limits<double>::min EIGEN_EMPTY ());
|
||||
|
||||
while(std::abs(sf )<epsf) sf = internal::random<float>();
|
||||
while(std::abs(sd )<epsd) sf = internal::random<double>();
|
||||
while(std::abs(sd )<epsd) sd = internal::random<double>();
|
||||
while(std::abs(scf)<epsf) scf = internal::random<CF>();
|
||||
while(std::abs(scd)<epsd) scd = internal::random<CD>();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user