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

VERSION 1.13 change again to SPARSE_QR

parent c82d9e1b
No related branches found
No related tags found
1 merge request!113BUG in previous ceres_new_api: VERSION 1.13 change again to SPARSE_QR
...@@ -11,10 +11,13 @@ CeresManager::CeresManager(ProblemPtr _wolf_problem, const ceres::Solver::Option ...@@ -11,10 +11,13 @@ CeresManager::CeresManager(ProblemPtr _wolf_problem, const ceres::Solver::Option
use_wolf_auto_diff_(_use_wolf_auto_diff) use_wolf_auto_diff_(_use_wolf_auto_diff)
{ {
ceres::Covariance::Options covariance_options; ceres::Covariance::Options covariance_options;
#if CERES_VERSION_MINOR >= 10 #if CERES_VERSION_MINOR >= 13
covariance_options.algorithm_type = ceres::SPARSE_QR;//ceres::DENSE_SVD; covariance_options.algorithm_type = ceres::SPARSE_QR;//ceres::DENSE_SVD;
#else covariance_options.sparse_linear_algebra_library_type = ceres::SUITE_SPARSE;
#elif CERES_VERSION_MINOR >= 10
covariance_options.algorithm_type = ceres::SUITE_SPARSE_QR;//ceres::DENSE_SVD; covariance_options.algorithm_type = ceres::SUITE_SPARSE_QR;//ceres::DENSE_SVD;
#else
covariance_options.algorithm_type = ceres::SPARSE_QR;//ceres::DENSE_SVD;
#endif #endif
covariance_options.num_threads = 8; covariance_options.num_threads = 8;
covariance_options.apply_loss_function = false; covariance_options.apply_loss_function = false;
......
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