aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/CholmodSupport
diff options
context:
space:
mode:
authorGravatar Desire NUENTSA <desire.nuentsa_wakam@inria.fr>2012-11-12 15:20:37 +0100
committerGravatar Desire NUENTSA <desire.nuentsa_wakam@inria.fr>2012-11-12 15:20:37 +0100
commit9cf77ce1d80cf17aa79c5da95b578ee2a4490152 (patch)
treee13538b44e7502ff10a3350225248be860e655b6 /Eigen/src/CholmodSupport
parent474716ec5bff0acf9117a06a0f4791b60800fdc8 (diff)
Add support for Sparse QR factorization
Diffstat (limited to 'Eigen/src/CholmodSupport')
-rw-r--r--Eigen/src/CholmodSupport/CholmodSupport.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Eigen/src/CholmodSupport/CholmodSupport.h b/Eigen/src/CholmodSupport/CholmodSupport.h
index b38821807..44a51557f 100644
--- a/Eigen/src/CholmodSupport/CholmodSupport.h
+++ b/Eigen/src/CholmodSupport/CholmodSupport.h
@@ -77,9 +77,13 @@ cholmod_sparse viewAsCholmod(SparseMatrix<_Scalar,_Options,_Index>& mat)
{
res.itype = CHOLMOD_INT;
}
+ else if (internal::is_same<_Index,UF_long>::value)
+ {
+ res.itype = CHOLMOD_LONG;
+ }
else
{
- eigen_assert(false && "Index type different than int is not supported yet");
+ eigen_assert(false && "Index type not supported yet");
}
// setup res.xtype