diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-06-06 09:44:53 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-06-06 09:44:53 +0200 |
commit | 84d20720b2e336345bdb588d6c7ff964c6ad8ff9 (patch) | |
tree | ad13b727bc9912b52e5d9165ffdd669979db3adc /Eigen/src/UmfPackSupport/UmfPackSupport.h | |
parent | 9d2b6dd71ab55c8332321c01348eac491b94975f (diff) |
fix umfpack for row-major
Diffstat (limited to 'Eigen/src/UmfPackSupport/UmfPackSupport.h')
-rw-r--r-- | Eigen/src/UmfPackSupport/UmfPackSupport.h | 4 |
1 files 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<int, 1, MatrixType::ColsAtCompileTime> IntRowVectorType; typedef Matrix<int, MatrixType::RowsAtCompileTime, 1> IntColVectorType; typedef SparseMatrix<Scalar> LUMatrixType; - typedef SparseMatrix<Scalar,RowMajor,int> UmfpackMatrixType; + typedef SparseMatrix<Scalar,ColMajor,int> 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; |