mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Schur decomposition of 1-by-1 always converges.
This commit is contained in:
parent
9178e2bd54
commit
1ff1bd69ac
@ -68,10 +68,13 @@ template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTim
|
||||
VERIFY_IS_EQUAL(cs1.matrixT(), csOnlyT.matrixT());
|
||||
VERIFY_RAISES_ASSERT(csOnlyT.matrixU());
|
||||
|
||||
// Test matrix with NaN
|
||||
A(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN();
|
||||
ComplexSchur<MatrixType> csNaN(A);
|
||||
VERIFY_IS_EQUAL(csNaN.info(), NoConvergence);
|
||||
if (size > 1)
|
||||
{
|
||||
// Test matrix with NaN
|
||||
A(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN();
|
||||
ComplexSchur<MatrixType> csNaN(A);
|
||||
VERIFY_IS_EQUAL(csNaN.info(), NoConvergence);
|
||||
}
|
||||
}
|
||||
|
||||
void test_schur_complex()
|
||||
|
@ -85,10 +85,13 @@ template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTim
|
||||
VERIFY_IS_EQUAL(rs1.matrixT(), rsOnlyT.matrixT());
|
||||
VERIFY_RAISES_ASSERT(rsOnlyT.matrixU());
|
||||
|
||||
// Test matrix with NaN
|
||||
A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN();
|
||||
RealSchur<MatrixType> rsNaN(A);
|
||||
VERIFY_IS_EQUAL(rsNaN.info(), NoConvergence);
|
||||
if (size > 1)
|
||||
{
|
||||
// Test matrix with NaN
|
||||
A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN();
|
||||
RealSchur<MatrixType> rsNaN(A);
|
||||
VERIFY_IS_EQUAL(rsNaN.info(), NoConvergence);
|
||||
}
|
||||
}
|
||||
|
||||
void test_schur_real()
|
||||
|
Loading…
x
Reference in New Issue
Block a user