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:
Sameer Agarwal
2018-02-26 20:22:15 -08:00
parent 7b2717582a
commit 0e0d5b44b5
+1 -1
View File
@@ -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) {