aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt1
-rw-r--r--test/pardiso_support.cpp26
2 files changed, 27 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 6b17ed941..ac2413ef3 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -67,6 +67,7 @@ if(TEST_LIB)
add_definitions("-DEIGEN_EXTERN_INSTANTIATIONS=1")
endif(TEST_LIB)
+ei_add_test(pardiso_support)
ei_add_test(meta)
ei_add_test(sizeof)
ei_add_test(dynalloc)
diff --git a/test/pardiso_support.cpp b/test/pardiso_support.cpp
new file mode 100644
index 000000000..a6162b44f
--- /dev/null
+++ b/test/pardiso_support.cpp
@@ -0,0 +1,26 @@
+/*
+ Intel Copyright (C) ....
+*/
+
+#include "sparse_solver.h"
+#include <Eigen/PARDISOSupport>
+
+template<typename T> void test_pardiso_T()
+{
+ //PardisoLLT < SparseMatrix<T, RowMajor> > pardiso_llt;
+ //PardisoLDLT< SparseMatrix<T, RowMajor> > pardiso_ldlt;
+ PardisoLU < SparseMatrix<T, RowMajor> > pardiso_lu;
+
+ //check_sparse_spd_solving(pardiso_llt);
+ check_sparse_square_solving(pardiso_lu);
+}
+
+void test_pardiso_support()
+{
+ for(int i = 0; i < g_repeat; i++) {
+ CALL_SUBTEST_1(test_pardiso_T<float>());
+ CALL_SUBTEST_2(test_pardiso_T<double>());
+ CALL_SUBTEST_3(test_pardiso_T< std::complex<float> >());
+ CALL_SUBTEST_4(test_pardiso_T< std::complex<double> >());
+ }
+}