Merged in v_huber/eigen (pull request PR-378)

Add interface to umfpack_*l_* functions
This commit is contained in:
Gael Guennebaud
2018-04-11 07:43:04 +00:00
2 changed files with 161 additions and 35 deletions

View File

@@ -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 >()));
}