sparselu.cpp File Reference
#include "sparse_solver.h"
#include <Eigen/SparseLU>

Functions

template<typename T >
void test_sparselu_T ()
 
 EIGEN_DECLARE_TEST (sparselu)
 

Function Documentation

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( sparselu  )
38  {
39  CALL_SUBTEST_1(test_sparselu_T<float>());
40  CALL_SUBTEST_2(test_sparselu_T<double>());
41  CALL_SUBTEST_3(test_sparselu_T<std::complex<float> >());
42  CALL_SUBTEST_4(test_sparselu_T<std::complex<double> >());
43 }
void test_sparselu_T()
Definition: sparselu.cpp:22
#define CALL_SUBTEST_3(FUNC)
Definition: split_test_helper.h:16
#define CALL_SUBTEST_1(FUNC)
Definition: split_test_helper.h:4
#define CALL_SUBTEST_2(FUNC)
Definition: split_test_helper.h:10
#define CALL_SUBTEST_4(FUNC)
Definition: split_test_helper.h:22

References CALL_SUBTEST_1, CALL_SUBTEST_2, CALL_SUBTEST_3, CALL_SUBTEST_4, and test_sparselu_T().

◆ test_sparselu_T()

template<typename T >
void test_sparselu_T ( )
22  {
23  SparseLU<SparseMatrix<T, ColMajor> /*, COLAMDOrdering<int>*/> sparselu_colamd; // COLAMDOrdering is the default
26 
27  check_sparse_square_solving(sparselu_colamd, 300, 100000, true);
28  check_sparse_square_solving(sparselu_amd, 300, 10000, true);
29  check_sparse_square_solving(sparselu_natural, 300, 2000, true);
30 
31  check_sparse_square_abs_determinant(sparselu_colamd);
33 
34  check_sparse_square_determinant(sparselu_colamd);
35  check_sparse_square_determinant(sparselu_amd);
36 }
Definition: Ordering.h:50
Definition: Ordering.h:89
Sparse supernodal LU factorization for general matrices.
Definition: SparseLU.h:151
void check_sparse_square_solving(Solver &solver, int maxSize=300, int maxRealWorldSize=100000, bool checkDeficient=false)
Definition: sparse_solver.h:613
void check_sparse_square_abs_determinant(Solver &solver)
Definition: sparse_solver.h:706
void check_sparse_square_determinant(Solver &solver)
Definition: sparse_solver.h:683

References check_sparse_square_abs_determinant(), check_sparse_square_determinant(), and check_sparse_square_solving().

Referenced by EIGEN_DECLARE_TEST().