From 8dc947821b3b64f754cdce1b7d8141885ed5ecd0 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Mon, 31 May 2010 18:17:47 +0100 Subject: Allow user to compute only the eigenvalues and not the eigenvectors. --- test/schur_real.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/schur_real.cpp') 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 void schur(int size = MatrixType::ColsAtCompileTim RealSchur rs2(A); VERIFY_IS_EQUAL(rs1.matrixT(), rs2.matrixT()); VERIFY_IS_EQUAL(rs1.matrixU(), rs2.matrixU()); + + // Test computation of only T, not U + RealSchur rsOnlyT(A, false); + VERIFY_IS_EQUAL(rs1.matrixT(), rsOnlyT.matrixT()); + VERIFY_RAISES_ASSERT(rsOnlyT.matrixU()); } void test_schur_real() -- cgit v1.2.3