Fix the build on Eigen version 3.2.1 and older.

Change-Id: I18f5cb5d42113737d7b8f78a67acee28bd5b3e08
This commit is contained in:
Sameer Agarwal
2014-08-29 09:16:56 -07:00
parent 5f96c62b56
commit 0e1cc2a554
3 changed files with 27 additions and 14 deletions
@@ -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
}