Skip to content
Snippets Groups Projects
Commit 5aaf57de authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

SUITESPARSE IS REQUIRED

parent 78f26a69
No related branches found
No related tags found
1 merge request!109Ceres new api
...@@ -22,11 +22,6 @@ CeresManager::CeresManager(ProblemPtr _wolf_problem, const ceres::Solver::Option ...@@ -22,11 +22,6 @@ CeresManager::CeresManager(ProblemPtr _wolf_problem, const ceres::Solver::Option
covariance_ = new ceres::Covariance(covariance_options); covariance_ = new ceres::Covariance(covariance_options);
ceres::Problem::Options problem_options; ceres::Problem::Options problem_options;
#ifdef SUITESPARSE_VERSION
ceres_options_.sparse_linear_algebra_library_type = ceres::SUITE_SPARSE;
#else
ceres_options_.sparse_linear_algebra_library_type = ceres::EIGEN_SPARSE;
#endif
problem_options.cost_function_ownership = ceres::DO_NOT_TAKE_OWNERSHIP; problem_options.cost_function_ownership = ceres::DO_NOT_TAKE_OWNERSHIP;
problem_options.loss_function_ownership = ceres::TAKE_OWNERSHIP; problem_options.loss_function_ownership = ceres::TAKE_OWNERSHIP;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment