Fixed bug which (extremely rarely) could end in an infinite loop

This commit is contained in:
Christoph Hertzberg 2016-12-15 17:22:12 +01:00
parent 642dddcce2
commit 4247d35d4b

View File

@ -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>();