-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from lsst/tickets/DM-5183
Added patch plus tweaks for eigen bug 1086, to support new SuiteSparse
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# HG changeset patch | ||
# User Gael Guennebaud <g.gael@free.fr> | ||
# Date 1444659612 -7200 | ||
# Node ID 6996ab297dedb4684a708e23cee3002906a4ef1c | ||
# Parent 73a8f4213cd4790bac8d1d7440a2f9e05ad0d3f8 | ||
Bug 1086: replace deprecated UF_long by SuiteSparse_long | ||
|
||
diff --git a/Eigen/src/CholmodSupport/CholmodSupport.h b/Eigen/src/CholmodSupport/CholmodSupport.h | ||
--- a/Eigen/src/CholmodSupport/CholmodSupport.h | ||
+++ b/Eigen/src/CholmodSupport/CholmodSupport.h | ||
@@ -78,7 +78,7 @@ | ||
{ | ||
res.itype = CHOLMOD_INT; | ||
} | ||
- else if (internal::is_same<_Index,UF_long>::value) | ||
+ else if (internal::is_same<_Index,SuiteSparse_long>::value) | ||
{ | ||
res.itype = CHOLMOD_LONG; | ||
} | ||
diff --git a/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h b/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h | ||
--- a/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h | ||
+++ b/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h | ||
@@ -47,7 +47,7 @@ | ||
* You can then apply it to a vector. | ||
* | ||
* R is the sparse triangular factor. Use matrixQR() to get it as SparseMatrix. | ||
- * NOTE : The Index type of R is always UF_long. You can get it with SPQR::Index | ||
+ * NOTE : The Index type of R is always SuiteSparse_long. You can get it with SPQR::Index | ||
* | ||
* \tparam _MatrixType The type of the sparse matrix A, must be a column-major SparseMatrix<> | ||
* NOTE | ||
@@ -59,7 +59,7 @@ | ||
public: | ||
typedef typename _MatrixType::Scalar Scalar; | ||
typedef typename _MatrixType::RealScalar RealScalar; | ||
- typedef UF_long Index ; | ||
+ typedef SuiteSparse_long Index ; | ||
typedef SparseMatrix<Scalar, ColMajor, Index> MatrixType; | ||
typedef PermutationMatrix<Dynamic, Dynamic> PermutationType; | ||
public: |