mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix BDCSVD condition for failing with numerical issue.
(cherry picked from commit 481a4a8c31)
This commit is contained in:
@@ -1035,7 +1035,7 @@ void BDCSVD<MatrixType>::perturbCol0
|
||||
#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;
|
||||
|
||||
Reference in New Issue
Block a user