From 84d20720b2e336345bdb588d6c7ff964c6ad8ff9 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 6 Jun 2012 09:44:53 +0200 Subject: [PATCH] fix umfpack for row-major --- Eigen/src/UmfPackSupport/UmfPackSupport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/UmfPackSupport/UmfPackSupport.h b/Eigen/src/UmfPackSupport/UmfPackSupport.h index 84f98ffd3..f98a4c8c0 100644 --- a/Eigen/src/UmfPackSupport/UmfPackSupport.h +++ b/Eigen/src/UmfPackSupport/UmfPackSupport.h @@ -147,7 +147,7 @@ class UmfPackLU : internal::noncopyable typedef Matrix IntRowVectorType; typedef Matrix IntColVectorType; typedef SparseMatrix LUMatrixType; - typedef SparseMatrix UmfpackMatrixType; + typedef SparseMatrix UmfpackMatrixType; public: @@ -313,7 +313,7 @@ class UmfPackLU : internal::noncopyable void grapInput(const MatrixType& mat) { m_copyMatrix.resize(mat.rows(), mat.cols()); - if( ((MatrixType::Flags&RowMajorBit)==RowMajorBit) || sizeof(typename MatrixType::Index)!=sizeof(int) || !mat.isCompressed()) + if( ((MatrixType::Flags&RowMajorBit)==RowMajorBit) || sizeof(typename MatrixType::Index)!=sizeof(int) || !mat.isCompressed() ) { // non supported input -> copy m_copyMatrix = mat;