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.

25 lines
743 B

  1. // This file is part of Eigen, a lightweight C++ template library
  2. // for linear algebra.
  3. //
  4. // Copyright (C) 2012 Désiré Nuentsa-Wakam <desire.nuentsa_wakam@inria.fr>
  5. //
  6. // This Source Code Form is subject to the terms of the Mozilla
  7. // Public License v. 2.0. If a copy of the MPL was not distributed
  8. // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
  9. #include "sparse_solver.h"
  10. #include <Eigen/SparseLU>
  11. #include <Eigen/MetisSupport>
  12. #include <unsupported/Eigen/SparseExtra>
  13. template<typename T> void test_metis_T()
  14. {
  15. SparseLU<SparseMatrix<T, ColMajor>, MetisOrdering<int> > sparselu_metis;
  16. check_sparse_square_solving(sparselu_metis);
  17. }
  18. void test_metis_support()
  19. {
  20. CALL_SUBTEST_1(test_metis_T<double>());
  21. }