blob: d87c56a13055772fcc60047e32ead8364f5091ff [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001// 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//
Austin Schuh189376f2018-12-20 22:11:15 +11006// 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
Brian Silverman72890c22015-09-19 14:37:37 -040010#include "sparse_solver.h"
11#include <Eigen/SparseLU>
12#include <Eigen/MetisSupport>
13#include <unsupported/Eigen/SparseExtra>
14
15template<typename T> void test_metis_T()
16{
17 SparseLU<SparseMatrix<T, ColMajor>, MetisOrdering<int> > sparselu_metis;
18
19 check_sparse_square_solving(sparselu_metis);
20}
21
22void test_metis_support()
23{
24 CALL_SUBTEST_1(test_metis_T<double>());
25}