mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix the build on Eigen version 3.2.1 and older.
Change-Id: I18f5cb5d42113737d7b8f78a67acee28bd5b3e08
This commit is contained in:
@@ -252,6 +252,7 @@ LinearSolver::Summary SparseNormalCholeskySolver::SolveImplUsingEigen(
|
||||
&event_logger);
|
||||
}
|
||||
|
||||
#if EIGEN_VERSION_AT_LEAST(3,2,2)
|
||||
// The common case
|
||||
if (natural_ldlt_.get() == NULL) {
|
||||
natural_ldlt_.reset(new SimplicialLDLTWithNaturalOrdering);
|
||||
@@ -263,6 +264,7 @@ LinearSolver::Summary SparseNormalCholeskySolver::SolveImplUsingEigen(
|
||||
natural_ldlt_.get(),
|
||||
rhs_and_solution,
|
||||
&event_logger);
|
||||
#endif
|
||||
|
||||
#endif // EIGEN_USE_EIGEN_SPARSE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user