pastix_support.cpp
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2008-2012 Gael Guennebaud <gael.guennebaud@inria.fr>
5 // Copyright (C) 2012 Désiré Nuentsa-Wakam <desire.nuentsa_wakam@inria.fr>
6 //
7 // This Source Code Form is subject to the terms of the Mozilla
8 // Public License v. 2.0. If a copy of the MPL was not distributed
9 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 
11 #define EIGEN_NO_DEBUG_SMALL_PRODUCT_BLOCKS
12 #include "sparse_solver.h"
13 #include <Eigen/PaStiXSupport>
14 #include <unsupported/Eigen/SparseExtra>
15 
16 
17 template<typename T> void test_pastix_T()
18 {
24 
25  check_sparse_spd_solving(pastix_llt_lower);
26  check_sparse_spd_solving(pastix_ldlt_lower);
27  check_sparse_spd_solving(pastix_llt_upper);
28  check_sparse_spd_solving(pastix_ldlt_upper);
29  check_sparse_square_solving(pastix_lu);
30 
31  // Some compilation check:
32  pastix_llt_lower.iparm();
33  pastix_llt_lower.dparm();
34  pastix_ldlt_lower.iparm();
35  pastix_ldlt_lower.dparm();
36  pastix_lu.iparm();
37  pastix_lu.dparm();
38 }
39 
40 // There is no support for selfadjoint matrices with PaStiX.
41 // Complex symmetric matrices should pass though
42 template<typename T> void test_pastix_T_LU()
43 {
45  check_sparse_square_solving(pastix_lu);
46 }
47 
48 EIGEN_DECLARE_TEST(pastix_support)
49 {
50  CALL_SUBTEST_1(test_pastix_T<float>());
51  CALL_SUBTEST_2(test_pastix_T<double>());
52  CALL_SUBTEST_3( (test_pastix_T_LU<std::complex<float> >()) );
53  CALL_SUBTEST_4(test_pastix_T_LU<std::complex<double> >());
54 }
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
test_pastix_T
void test_pastix_T()
Definition: pastix_support.cpp:17
Eigen::Upper
@ Upper
Definition: Constants.h:211
CALL_SUBTEST_4
#define CALL_SUBTEST_4(FUNC)
Definition: split_test_helper.h:22
CALL_SUBTEST_3
#define CALL_SUBTEST_3(FUNC)
Definition: split_test_helper.h:16
CALL_SUBTEST_1
#define CALL_SUBTEST_1(FUNC)
Definition: split_test_helper.h:4
test_pastix_T_LU
void test_pastix_T_LU()
Definition: pastix_support.cpp:42
Eigen::Lower
@ Lower
Definition: Constants.h:209
CALL_SUBTEST_2
#define CALL_SUBTEST_2(FUNC)
Definition: split_test_helper.h:10
EIGEN_DECLARE_TEST
EIGEN_DECLARE_TEST(pastix_support)
Definition: pastix_support.cpp:48
check_sparse_spd_solving
void check_sparse_spd_solving(Solver &solver, int maxSize=(std::min)(300, EIGEN_TEST_MAX_SIZE), int maxRealWorldSize=100000)
Definition: sparse_solver.h:404
sparse_solver.h
check_sparse_square_solving
void check_sparse_square_solving(Solver &solver, int maxSize=300, int maxRealWorldSize=100000, bool checkDeficient=false)
Definition: sparse_solver.h:534
Eigen::PastixLDLT
A sparse direct supernodal Cholesky (LLT) factorization and solver based on the PaStiX library.
Definition: PaStiXSupport.h:33
Eigen::PastixLLT
A sparse direct supernodal Cholesky (LLT) factorization and solver based on the PaStiX library.
Definition: PaStiXSupport.h:32
Eigen::PastixLU
Interface to the PaStix solver.
Definition: PaStiXSupport.h:31


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:12:41