Remove random retry loops in tests (batch 1: simple scalar cases)

libeigen/eigen!2260

Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
Rasmus Munk Larsen
2026-03-08 10:44:57 -07:00
parent 5790d716c3
commit be7538ed65
3 changed files with 4 additions and 7 deletions

View File

@@ -38,8 +38,8 @@ void basicStuff(const MatrixType& m) {
VectorType v1 = VectorType::Random(rows), vzero = VectorType::Zero(rows);
SquareMatrixType sm1 = SquareMatrixType::Random(rows, rows), sm2(rows, rows);
Scalar x = 0;
while (x == Scalar(0)) x = internal::random<Scalar>();
Scalar x = internal::random<Scalar>();
if (x == Scalar(0)) x = Scalar(1);
Index r = internal::random<Index>(0, rows - 1), c = internal::random<Index>(0, cols - 1);