mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-17 06:05:53 +08:00
Remove asserts that eigenvalue computation has converged (bug #354).
This commit is contained in:
parent
1aa6c7f122
commit
1e7712771e
@ -291,7 +291,7 @@ template<typename _MatrixType> class EigenSolver
|
|||||||
|
|
||||||
ComputationInfo info() const
|
ComputationInfo info() const
|
||||||
{
|
{
|
||||||
eigen_assert(m_isInitialized && "ComplexEigenSolver is not initialized.");
|
eigen_assert(m_isInitialized && "EigenSolver is not initialized.");
|
||||||
return m_realSchur.info();
|
return m_realSchur.info();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -242,7 +242,6 @@ template<typename _MatrixType> class SelfAdjointEigenSolver
|
|||||||
const MatrixType& eigenvectors() const
|
const MatrixType& eigenvectors() const
|
||||||
{
|
{
|
||||||
eigen_assert(m_isInitialized && "SelfAdjointEigenSolver is not initialized.");
|
eigen_assert(m_isInitialized && "SelfAdjointEigenSolver is not initialized.");
|
||||||
eigen_assert(info() == Success && "Eigenvalue computation did not converge.");
|
|
||||||
eigen_assert(m_eigenvectorsOk && "The eigenvectors have not been computed together with the eigenvalues.");
|
eigen_assert(m_eigenvectorsOk && "The eigenvectors have not been computed together with the eigenvalues.");
|
||||||
return m_eivec;
|
return m_eivec;
|
||||||
}
|
}
|
||||||
@ -265,7 +264,6 @@ template<typename _MatrixType> class SelfAdjointEigenSolver
|
|||||||
const RealVectorType& eigenvalues() const
|
const RealVectorType& eigenvalues() const
|
||||||
{
|
{
|
||||||
eigen_assert(m_isInitialized && "SelfAdjointEigenSolver is not initialized.");
|
eigen_assert(m_isInitialized && "SelfAdjointEigenSolver is not initialized.");
|
||||||
eigen_assert(info() == Success && "Eigenvalue computation did not converge.");
|
|
||||||
return m_eivalues;
|
return m_eivalues;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -290,7 +288,6 @@ template<typename _MatrixType> class SelfAdjointEigenSolver
|
|||||||
MatrixType operatorSqrt() const
|
MatrixType operatorSqrt() const
|
||||||
{
|
{
|
||||||
eigen_assert(m_isInitialized && "SelfAdjointEigenSolver is not initialized.");
|
eigen_assert(m_isInitialized && "SelfAdjointEigenSolver is not initialized.");
|
||||||
eigen_assert(info() == Success && "Eigenvalue computation did not converge.");
|
|
||||||
eigen_assert(m_eigenvectorsOk && "The eigenvectors have not been computed together with the eigenvalues.");
|
eigen_assert(m_eigenvectorsOk && "The eigenvectors have not been computed together with the eigenvalues.");
|
||||||
return m_eivec * m_eivalues.cwiseSqrt().asDiagonal() * m_eivec.adjoint();
|
return m_eivec * m_eivalues.cwiseSqrt().asDiagonal() * m_eivec.adjoint();
|
||||||
}
|
}
|
||||||
@ -316,7 +313,6 @@ template<typename _MatrixType> class SelfAdjointEigenSolver
|
|||||||
MatrixType operatorInverseSqrt() const
|
MatrixType operatorInverseSqrt() const
|
||||||
{
|
{
|
||||||
eigen_assert(m_isInitialized && "SelfAdjointEigenSolver is not initialized.");
|
eigen_assert(m_isInitialized && "SelfAdjointEigenSolver is not initialized.");
|
||||||
eigen_assert(info() == Success && "Eigenvalue computation did not converge.");
|
|
||||||
eigen_assert(m_eigenvectorsOk && "The eigenvectors have not been computed together with the eigenvalues.");
|
eigen_assert(m_eigenvectorsOk && "The eigenvectors have not been computed together with the eigenvalues.");
|
||||||
return m_eivec * m_eivalues.cwiseInverse().cwiseSqrt().asDiagonal() * m_eivec.adjoint();
|
return m_eivec * m_eivalues.cwiseInverse().cwiseSqrt().asDiagonal() * m_eivec.adjoint();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user