mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Revert "Remove random retry loops in tests (batch 2: indices and integer types)"
This reverts merge request !2261
This commit is contained in:
@@ -28,8 +28,10 @@ void jacobi(const MatrixType& m = MatrixType()) {
|
||||
|
||||
{
|
||||
Index p = internal::random<Index>(0, rows - 1);
|
||||
Index q = internal::random<Index>(0, rows - 2);
|
||||
if (q >= p) ++q;
|
||||
Index q;
|
||||
do {
|
||||
q = internal::random<Index>(0, rows - 1);
|
||||
} while (q == p);
|
||||
|
||||
MatrixType b = a;
|
||||
b.applyOnTheLeft(p, q, rot);
|
||||
@@ -39,8 +41,10 @@ void jacobi(const MatrixType& m = MatrixType()) {
|
||||
|
||||
{
|
||||
Index p = internal::random<Index>(0, cols - 1);
|
||||
Index q = internal::random<Index>(0, cols - 2);
|
||||
if (q >= p) ++q;
|
||||
Index q;
|
||||
do {
|
||||
q = internal::random<Index>(0, cols - 1);
|
||||
} while (q == p);
|
||||
|
||||
MatrixType b = a;
|
||||
b.applyOnTheRight(p, q, rot);
|
||||
|
||||
Reference in New Issue
Block a user