mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49: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_IS_EQUAL(cs1.matrixT(), csOnlyT.matrixT());
|
||||||
VERIFY_RAISES_ASSERT(csOnlyT.matrixU());
|
VERIFY_RAISES_ASSERT(csOnlyT.matrixU());
|
||||||
|
|
||||||
// Test matrix with NaN
|
if (size > 1)
|
||||||
A(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN();
|
{
|
||||||
ComplexSchur<MatrixType> csNaN(A);
|
// Test matrix with NaN
|
||||||
VERIFY_IS_EQUAL(csNaN.info(), NoConvergence);
|
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()
|
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_IS_EQUAL(rs1.matrixT(), rsOnlyT.matrixT());
|
||||||
VERIFY_RAISES_ASSERT(rsOnlyT.matrixU());
|
VERIFY_RAISES_ASSERT(rsOnlyT.matrixU());
|
||||||
|
|
||||||
// Test matrix with NaN
|
if (size > 1)
|
||||||
A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN();
|
{
|
||||||
RealSchur<MatrixType> rsNaN(A);
|
// Test matrix with NaN
|
||||||
VERIFY_IS_EQUAL(rsNaN.info(), NoConvergence);
|
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()
|
void test_schur_real()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user