mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-24 02:29:33 +08:00
extend umfpack support
This commit is contained in:
parent
b509cf0742
commit
1b20e16546
@ -26,12 +26,21 @@
|
|||||||
|
|
||||||
#include <Eigen/UmfPackSupport>
|
#include <Eigen/UmfPackSupport>
|
||||||
|
|
||||||
|
template<typename T> void test_umfpack_support_T()
|
||||||
|
{
|
||||||
|
UmfPackLU<SparseMatrix<T, ColMajor> > umfpack_colmajor;
|
||||||
|
UmfPackLU<SparseMatrix<T, RowMajor> > umfpack_rowmajor;
|
||||||
|
|
||||||
|
check_sparse_square_solving(umfpack_colmajor);
|
||||||
|
check_sparse_square_solving(umfpack_rowmajor);
|
||||||
|
|
||||||
|
check_sparse_square_determinant(umfpack_colmajor);
|
||||||
|
check_sparse_square_determinant(umfpack_rowmajor);
|
||||||
|
}
|
||||||
|
|
||||||
void test_umfpack_support()
|
void test_umfpack_support()
|
||||||
{
|
{
|
||||||
UmfPackLU<SparseMatrix<double, ColMajor> > umfpack_double_colmajor;
|
CALL_SUBTEST_1(test_umfpack_support_T<double>());
|
||||||
UmfPackLU<SparseMatrix<std::complex<double> > > umfpack_cplxdouble_colmajor;
|
CALL_SUBTEST_2(test_umfpack_support_T<std::complex<double> >());
|
||||||
CALL_SUBTEST_1(check_sparse_square_solving(umfpack_double_colmajor));
|
|
||||||
CALL_SUBTEST_2(check_sparse_square_solving(umfpack_cplxdouble_colmajor));
|
|
||||||
CALL_SUBTEST_1(check_sparse_square_determinant(umfpack_double_colmajor));
|
|
||||||
CALL_SUBTEST_2(check_sparse_square_determinant(umfpack_cplxdouble_colmajor));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user