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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user