mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
015c331252
* * * License disclaimer changed to BSD license for MKL_support.h * * * Pardiso support fixed, test added. blas/lapack tests fixed: Scalar parameter was added in Cholesky, product_matrix_vector_triangular remaned to triangular_matrix_vector_product. * * * PARDISO test was added physically.
27 lines
691 B
C++
27 lines
691 B
C++
/*
|
|
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> >());
|
|
}
|
|
}
|