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

@@ -86,7 +86,7 @@ void triangular_square(const MatrixType& m) {
m1 = MatrixType::Random(rows, cols);
for (int i = 0; i < rows; ++i)
while (numext::abs2(m1(i, i)) < RealScalar(1e-1)) m1(i, i) = internal::random<Scalar>();
if (numext::abs2(m1(i, i)) < RealScalar(1e-1)) m1(i, i) = Scalar(1);
Transpose<MatrixType> trm4(m4);
// test back and forward substitution with a vector as the rhs