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:
Rasmus Munk Larsen
2026-03-08 11:51:35 -07:00
parent 411422f2dc
commit ab58784268
4 changed files with 10 additions and 11 deletions

View File

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