You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
947 B

  1. /*
  2. Intel Copyright (C) ....
  3. */
  4. #include "sparse_solver.h"
  5. #include <Eigen/PardisoSupport>
  6. template<typename T> void test_pardiso_T()
  7. {
  8. PardisoLLT < SparseMatrix<T, RowMajor>, Lower> pardiso_llt_lower;
  9. PardisoLLT < SparseMatrix<T, RowMajor>, Upper> pardiso_llt_upper;
  10. PardisoLDLT < SparseMatrix<T, RowMajor>, Lower> pardiso_ldlt_lower;
  11. PardisoLDLT < SparseMatrix<T, RowMajor>, Upper> pardiso_ldlt_upper;
  12. PardisoLU < SparseMatrix<T, RowMajor> > pardiso_lu;
  13. check_sparse_spd_solving(pardiso_llt_lower);
  14. check_sparse_spd_solving(pardiso_llt_upper);
  15. check_sparse_spd_solving(pardiso_ldlt_lower);
  16. check_sparse_spd_solving(pardiso_ldlt_upper);
  17. check_sparse_square_solving(pardiso_lu);
  18. }
  19. void test_pardiso_support()
  20. {
  21. CALL_SUBTEST_1(test_pardiso_T<float>());
  22. CALL_SUBTEST_2(test_pardiso_T<double>());
  23. CALL_SUBTEST_3(test_pardiso_T< std::complex<float> >());
  24. CALL_SUBTEST_4(test_pardiso_T< std::complex<double> >());
  25. }