| commit | 481a4a8c319640a3689be11c66b38cf1f9dc50b2 | [log] [tgz] |
|---|---|---|
| author | Antonio Sanchez <cantonios@google.com> | Fri May 20 08:17:07 2022 -0700 |
| committer | Antonio Sanchez <cantonios@google.com> | Fri May 20 08:18:31 2022 -0700 |
| tree | b9a8e67bf657f94ae3712273473209237d4c9d41 | |
| parent | a9868bd5bed172b774ad605fe7833f8ae4d80ec5 [diff] |
Fix BDCSVD condition for failing with numerical issue.
diff --git a/Eigen/src/SVD/BDCSVD.h b/Eigen/src/SVD/BDCSVD.h index 2c1cbf9..17bd288 100644 --- a/Eigen/src/SVD/BDCSVD.h +++ b/Eigen/src/SVD/BDCSVD.h
@@ -1099,7 +1099,7 @@ #endif // Avoid index out of bounds. // Will end up setting zhat(k) = 0. - if (l == 0) { + if (i >= k && l == 0) { m_info = NumericalIssue; prod = 0; break;