mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-13 16:41:50 +08:00
Fix BDCSVD condition for failing with numerical issue.
(cherry picked from commit 481a4a8c319640a3689be11c66b38cf1f9dc50b2)
This commit is contained in:
parent
5cb7505a44
commit
848db4ed2d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user