mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 23:03:15 +08:00
JacobiSVD: set m_nonzeroSingularValues to zero if not finite
This commit is contained in:
parent
6418ac0285
commit
fdc749de2a
@ -704,6 +704,7 @@ JacobiSVD<MatrixType, Options>& JacobiSVD<MatrixType, Options>::compute_impl(con
|
|||||||
if (!(numext::isfinite)(scale)) {
|
if (!(numext::isfinite)(scale)) {
|
||||||
m_isInitialized = true;
|
m_isInitialized = true;
|
||||||
m_info = InvalidInput;
|
m_info = InvalidInput;
|
||||||
|
m_nonzeroSingularValues = 0;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
if(numext::is_exactly_zero(scale)) scale = RealScalar(1);
|
if(numext::is_exactly_zero(scale)) scale = RealScalar(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user