diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2010-05-31 18:17:47 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2010-05-31 18:17:47 +0100 |
commit | 8dc947821b3b64f754cdce1b7d8141885ed5ecd0 (patch) | |
tree | e99b4229732dca52fd2da32ffbed38b1c3b34076 /test/schur_real.cpp | |
parent | 609941380aad2883ab0facc44aaaee4736f15ef3 (diff) |
Allow user to compute only the eigenvalues and not the eigenvectors.
Diffstat (limited to 'test/schur_real.cpp')
-rw-r--r-- | test/schur_real.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/schur_real.cpp b/test/schur_real.cpp index bcb19c936..116c8dbce 100644 --- a/test/schur_real.cpp +++ b/test/schur_real.cpp @@ -73,6 +73,11 @@ template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTim RealSchur<MatrixType> rs2(A); VERIFY_IS_EQUAL(rs1.matrixT(), rs2.matrixT()); VERIFY_IS_EQUAL(rs1.matrixU(), rs2.matrixU()); + + // Test computation of only T, not U + RealSchur<MatrixType> rsOnlyT(A, false); + VERIFY_IS_EQUAL(rs1.matrixT(), rsOnlyT.matrixT()); + VERIFY_RAISES_ASSERT(rsOnlyT.matrixU()); } void test_schur_real() |