diff options
Diffstat (limited to 'internal/ceres/schur_complement_solver_test.cc')
-rw-r--r-- | internal/ceres/schur_complement_solver_test.cc | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/internal/ceres/schur_complement_solver_test.cc b/internal/ceres/schur_complement_solver_test.cc index d91c162..8e71b2e 100644 --- a/internal/ceres/schur_complement_solver_test.cc +++ b/internal/ceres/schur_complement_solver_test.cc @@ -187,17 +187,31 @@ TEST_F(SchurComplementSolverTest, #ifndef CERES_NO_CXSPARSE TEST_F(SchurComplementSolverTest, - SparseSchurWithSuiteSparseSmallProblem) { + SparseSchurWithCXSparseSmallProblem) { ComputeAndCompareSolutions(2, false, SPARSE_SCHUR, EIGEN, CX_SPARSE, true); ComputeAndCompareSolutions(2, true, SPARSE_SCHUR, EIGEN, CX_SPARSE, true); } TEST_F(SchurComplementSolverTest, - SparseSchurWithSuiteSparseLargeProblem) { + SparseSchurWithCXSparseLargeProblem) { ComputeAndCompareSolutions(3, false, SPARSE_SCHUR, EIGEN, CX_SPARSE, true); ComputeAndCompareSolutions(3, true, SPARSE_SCHUR, EIGEN, CX_SPARSE, true); } #endif // CERES_NO_CXSPARSE +#ifdef CERES_USE_EIGEN_SPARSE +TEST_F(SchurComplementSolverTest, + SparseSchurWithEigenSparseSmallProblem) { + ComputeAndCompareSolutions(2, false, SPARSE_SCHUR, EIGEN, EIGEN_SPARSE, true); + ComputeAndCompareSolutions(2, true, SPARSE_SCHUR, EIGEN, EIGEN_SPARSE, true); +} + +TEST_F(SchurComplementSolverTest, + SparseSchurWithEigenSparseLargeProblem) { + ComputeAndCompareSolutions(3, false, SPARSE_SCHUR, EIGEN, EIGEN_SPARSE, true); + ComputeAndCompareSolutions(3, true, SPARSE_SCHUR, EIGEN, EIGEN_SPARSE, true); +} +#endif // CERES_USE_EIGEN_SPARSE + } // namespace internal } // namespace ceres |