Fix BDCSVD condition for failing with numerical issue.

(cherry picked from commit 481a4a8c319640a3689be11c66b38cf1f9dc50b2)
This commit is contained in:
Antonio Sanchez 2022-05-20 08:17:07 -07:00
parent 5cb7505a44
commit 848db4ed2d

View File

@ -1035,7 +1035,7 @@ void BDCSVD<MatrixType>::perturbCol0
#endif #endif
// Avoid index out of bounds. // Avoid index out of bounds.
// Will end up setting zhat(k) = 0. // Will end up setting zhat(k) = 0.
if (l == 0) { if (i >= k && l == 0) {
m_info = NumericalIssue; m_info = NumericalIssue;
prod = 0; prod = 0;
break; break;