mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-07 21:39:04 +08:00
fix umfpack for row-major
This commit is contained in:
parent
9d2b6dd71a
commit
84d20720b2
@ -147,7 +147,7 @@ class UmfPackLU : internal::noncopyable
|
|||||||
typedef Matrix<int, 1, MatrixType::ColsAtCompileTime> IntRowVectorType;
|
typedef Matrix<int, 1, MatrixType::ColsAtCompileTime> IntRowVectorType;
|
||||||
typedef Matrix<int, MatrixType::RowsAtCompileTime, 1> IntColVectorType;
|
typedef Matrix<int, MatrixType::RowsAtCompileTime, 1> IntColVectorType;
|
||||||
typedef SparseMatrix<Scalar> LUMatrixType;
|
typedef SparseMatrix<Scalar> LUMatrixType;
|
||||||
typedef SparseMatrix<Scalar,RowMajor,int> UmfpackMatrixType;
|
typedef SparseMatrix<Scalar,ColMajor,int> UmfpackMatrixType;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -313,7 +313,7 @@ class UmfPackLU : internal::noncopyable
|
|||||||
void grapInput(const MatrixType& mat)
|
void grapInput(const MatrixType& mat)
|
||||||
{
|
{
|
||||||
m_copyMatrix.resize(mat.rows(), mat.cols());
|
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
|
// non supported input -> copy
|
||||||
m_copyMatrix = mat;
|
m_copyMatrix = mat;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user