diff options
Diffstat (limited to 'internal/ceres/unsymmetric_linear_solver_test.cc')
-rw-r--r-- | internal/ceres/unsymmetric_linear_solver_test.cc | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/internal/ceres/unsymmetric_linear_solver_test.cc b/internal/ceres/unsymmetric_linear_solver_test.cc index 232f34c..af9dffe 100644 --- a/internal/ceres/unsymmetric_linear_solver_test.cc +++ b/internal/ceres/unsymmetric_linear_solver_test.cc @@ -118,23 +118,41 @@ class UnsymmetricLinearSolverTest : public ::testing::Test { scoped_array<double> sol_regularized_; }; -TEST_F(UnsymmetricLinearSolverTest, DenseQR) { +TEST_F(UnsymmetricLinearSolverTest, EigenDenseQR) { LinearSolver::Options options; options.type = DENSE_QR; + options.dense_linear_algebra_library_type = EIGEN; TestSolver(options); } -TEST_F(UnsymmetricLinearSolverTest, DenseNormalCholesky) { +TEST_F(UnsymmetricLinearSolverTest, EigenDenseNormalCholesky) { LinearSolver::Options options; + options.dense_linear_algebra_library_type = EIGEN; options.type = DENSE_NORMAL_CHOLESKY; TestSolver(options); } +#ifndef CERES_NO_LAPACK +TEST_F(UnsymmetricLinearSolverTest, LAPACKDenseQR) { + LinearSolver::Options options; + options.type = DENSE_QR; + options.dense_linear_algebra_library_type = LAPACK; + TestSolver(options); +} + +TEST_F(UnsymmetricLinearSolverTest, LAPACKDenseNormalCholesky) { + LinearSolver::Options options; + options.dense_linear_algebra_library_type = LAPACK; + options.type = DENSE_NORMAL_CHOLESKY; + TestSolver(options); +} +#endif + #ifndef CERES_NO_SUITESPARSE TEST_F(UnsymmetricLinearSolverTest, SparseNormalCholeskyUsingSuiteSparsePreOrdering) { LinearSolver::Options options; - options.sparse_linear_algebra_library = SUITE_SPARSE; + options.sparse_linear_algebra_library_type = SUITE_SPARSE; options.type = SPARSE_NORMAL_CHOLESKY; options.use_postordering = false; TestSolver(options); @@ -143,7 +161,7 @@ TEST_F(UnsymmetricLinearSolverTest, TEST_F(UnsymmetricLinearSolverTest, SparseNormalCholeskyUsingSuiteSparsePostOrdering) { LinearSolver::Options options; - options.sparse_linear_algebra_library = SUITE_SPARSE; + options.sparse_linear_algebra_library_type = SUITE_SPARSE; options.type = SPARSE_NORMAL_CHOLESKY; options.use_postordering = true; TestSolver(options); @@ -154,7 +172,7 @@ TEST_F(UnsymmetricLinearSolverTest, TEST_F(UnsymmetricLinearSolverTest, SparseNormalCholeskyUsingCXSparsePreOrdering) { LinearSolver::Options options; - options.sparse_linear_algebra_library = CX_SPARSE; + options.sparse_linear_algebra_library_type = CX_SPARSE; options.type = SPARSE_NORMAL_CHOLESKY; options.use_postordering = false; TestSolver(options); @@ -163,7 +181,7 @@ TEST_F(UnsymmetricLinearSolverTest, TEST_F(UnsymmetricLinearSolverTest, SparseNormalCholeskyUsingCXSparsePostOrdering) { LinearSolver::Options options; - options.sparse_linear_algebra_library = CX_SPARSE; + options.sparse_linear_algebra_library_type = CX_SPARSE; options.type = SPARSE_NORMAL_CHOLESKY; options.use_postordering = true; TestSolver(options); |