diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2021-02-19 19:36:18 +0100 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2021-02-19 19:36:18 +0100 |
commit | a7749c09bcf053ab781186f4da741eff93f201ca (patch) | |
tree | c5e55d9e8670b6eb97cb26fe93cce233599c6113 /test | |
parent | 128eebf05e9b0770c66cf47798ce908cac928201 (diff) |
Bug #1910: Make SparseCholesky work for RowMajor matrices
Diffstat (limited to 'test')
-rw-r--r-- | test/simplicial_cholesky.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/simplicial_cholesky.cpp b/test/simplicial_cholesky.cpp index e3c31e3ba..538d01ab5 100644 --- a/test/simplicial_cholesky.cpp +++ b/test/simplicial_cholesky.cpp @@ -9,9 +9,9 @@ #include "sparse_solver.h" -template<typename T, typename I_> void test_simplicial_cholesky_T() +template<typename T, typename I_, int flag> void test_simplicial_cholesky_T() { - typedef SparseMatrix<T,0,I_> SparseMatrixType; + typedef SparseMatrix<T,flag,I_> SparseMatrixType; SimplicialCholesky<SparseMatrixType, Lower> chol_colmajor_lower_amd; SimplicialCholesky<SparseMatrixType, Upper> chol_colmajor_upper_amd; SimplicialLLT< SparseMatrixType, Lower> llt_colmajor_lower_amd; @@ -41,7 +41,10 @@ template<typename T, typename I_> void test_simplicial_cholesky_T() EIGEN_DECLARE_TEST(simplicial_cholesky) { - CALL_SUBTEST_1(( test_simplicial_cholesky_T<double,int>() )); - CALL_SUBTEST_2(( test_simplicial_cholesky_T<std::complex<double>, int>() )); - CALL_SUBTEST_3(( test_simplicial_cholesky_T<double,long int>() )); + CALL_SUBTEST_11(( test_simplicial_cholesky_T<double, int, ColMajor>() )); + CALL_SUBTEST_12(( test_simplicial_cholesky_T<std::complex<double>, int, ColMajor>() )); + CALL_SUBTEST_13(( test_simplicial_cholesky_T<double, long int, ColMajor>() )); + CALL_SUBTEST_21(( test_simplicial_cholesky_T<double, int, RowMajor>() )); + CALL_SUBTEST_22(( test_simplicial_cholesky_T<std::complex<double>, int, RowMajor>() )); + CALL_SUBTEST_23(( test_simplicial_cholesky_T<double, long int, RowMajor>() )); } |