mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Remove random retry loops in tests (batch 5: geometry, mixing types, triangular)
libeigen/eigen!2264 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
@@ -77,10 +77,10 @@ void mixingtypes(int size = SizeAtCompileType) {
|
||||
float epsf = std::sqrt(std::numeric_limits<float>::min EIGEN_EMPTY());
|
||||
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) sd = internal::random<double>();
|
||||
while (std::abs(scf) < epsf) scf = internal::random<CF>();
|
||||
while (std::abs(scd) < epsd) scd = internal::random<CD>();
|
||||
if (std::abs(sf) < epsf) sf = 1.0f;
|
||||
if (std::abs(sd) < epsd) sd = 1.0;
|
||||
if (std::abs(scf) < epsf) scf = CF(1);
|
||||
if (std::abs(scd) < epsd) scd = CD(1);
|
||||
|
||||
// check scalar products
|
||||
VERIFY_MIX_SCALAR(vcf * sf, vcf * complex<float>(sf));
|
||||
|
||||
Reference in New Issue
Block a user