mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user