diff options
author | vhuber <anonymous@invalid.net> | 2018-04-09 17:07:46 +0200 |
---|---|---|
committer | vhuber <anonymous@invalid.net> | 2018-04-09 17:07:46 +0200 |
commit | 08008f67e1c8b3eb5fa6e846f2760aae38cf82c7 (patch) | |
tree | 06536de6f01e94a8447ab1b6a2952d032b43d246 | |
parent | 267a144da5145d735934aab0a249418d39ce3f9b (diff) |
Add unitTest
-rw-r--r-- | test/umfpack_support.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/umfpack_support.cpp b/test/umfpack_support.cpp index 37ab11f0b..3e9b33ba4 100644 --- a/test/umfpack_support.cpp +++ b/test/umfpack_support.cpp @@ -12,10 +12,10 @@ #include <Eigen/UmfPackSupport> -template<typename T> void test_umfpack_support_T() +template<typename T1, typename T2> void test_umfpack_support_T() { - UmfPackLU<SparseMatrix<T, ColMajor> > umfpack_colmajor; - UmfPackLU<SparseMatrix<T, RowMajor> > umfpack_rowmajor; + UmfPackLU<SparseMatrix<T1, ColMajor, T2> > umfpack_colmajor; + UmfPackLU<SparseMatrix<T1, RowMajor, T2> > umfpack_rowmajor; check_sparse_square_solving(umfpack_colmajor); check_sparse_square_solving(umfpack_rowmajor); @@ -26,7 +26,9 @@ template<typename T> void test_umfpack_support_T() void test_umfpack_support() { - CALL_SUBTEST_1(test_umfpack_support_T<double>()); - CALL_SUBTEST_2(test_umfpack_support_T<std::complex<double> >()); + CALL_SUBTEST_1((test_umfpack_support_T<double, int>())); + CALL_SUBTEST_2((test_umfpack_support_T<std::complex<double>, int >())); + CALL_SUBTEST_3((test_umfpack_support_T<double, UF_long >())); + CALL_SUBTEST_4((test_umfpack_support_T<std::complex<double>, UF_long >())); } |