mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
JacobiSVD: set m_nonzeroSingularValues to zero if not finite
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
6418ac0285
commit
fdc749de2a
@@ -704,6 +704,7 @@ JacobiSVD<MatrixType, Options>& JacobiSVD<MatrixType, Options>::compute_impl(con
|
||||
if (!(numext::isfinite)(scale)) {
|
||||
m_isInitialized = true;
|
||||
m_info = InvalidInput;
|
||||
m_nonzeroSingularValues = 0;
|
||||
return *this;
|
||||
}
|
||||
if(numext::is_exactly_zero(scale)) scale = RealScalar(1);
|
||||
|
||||
Reference in New Issue
Block a user