mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Make SubsetPreconditionerTest compatible with old Eigen.
The enum Eigen::UpLoType did not have a name in older versions of Eigen, so a templated function using that enum type fails to compile with earlier versions of Eigen. This change replaces the enum in the template declaration with an int. Change-Id: Id128fd96b76818be347ee6ed5945c231936d9af8
This commit is contained in:
@@ -44,7 +44,7 @@ namespace internal {
|
||||
|
||||
// TODO(sameeragarwal): Refactor the following two functions out of
|
||||
// here and sparse_cholesky_test.cc into a more suitable place.
|
||||
template <Eigen::UpLoType UpLoType>
|
||||
template <int UpLoType>
|
||||
bool SolveLinearSystemUsingEigen(const Matrix& lhs,
|
||||
const Vector rhs,
|
||||
Vector* solution) {
|
||||
|
||||
Reference in New Issue
Block a user