Skip to content
Snippets Groups Projects
Commit d1a28acf authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Merge branch 'ceres_new_api' into 'master'

BUG in previous ceres_new_api: VERSION 1.13 change again to SPARSE_QR

See merge request !113
parents 690d12a1 c00f7826
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