Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
c00f7826
Commit
c00f7826
authored
7 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
VERSION 1.13 change again to SPARSE_QR
parent
c82d9e1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!113
BUG in previous ceres_new_api: VERSION 1.13 change again to SPARSE_QR
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ceres_wrapper/ceres_manager.cpp
+5
-2
5 additions, 2 deletions
src/ceres_wrapper/ceres_manager.cpp
with
5 additions
and
2 deletions
src/ceres_wrapper/ceres_manager.cpp
+
5
−
2
View file @
c00f7826
...
@@ -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 >= 1
0
#if CERES_VERSION_MINOR >= 1
3
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment