aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar vhuber <anonymous@invalid.net>2018-04-09 17:07:46 +0200
committerGravatar vhuber <anonymous@invalid.net>2018-04-09 17:07:46 +0200
commit08008f67e1c8b3eb5fa6e846f2760aae38cf82c7 (patch)
tree06536de6f01e94a8447ab1b6a2952d032b43d246 /test
parent267a144da5145d735934aab0a249418d39ce3f9b (diff)
Add unitTest
Diffstat (limited to 'test')
-rw-r--r--test/umfpack_support.cpp12
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 >()));
}