mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Fix BDCSVD condition for failing with numerical issue.
This commit is contained in:
parent
a9868bd5be
commit
481a4a8c31
@ -1099,7 +1099,7 @@ void BDCSVD<MatrixType, Options>::perturbCol0(const ArrayRef& col0, const ArrayR
|
|||||||
#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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user