aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/PardisoSupport/PardisoSupport.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2012-10-24 10:31:04 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2012-10-24 10:31:04 +0200
commitb3254c9af514ae4d6ab0e8a2947dea8aa3592d9b (patch)
tree7cddd569935f54bae220d07885d64784e3b1a64f /Eigen/src/PardisoSupport/PardisoSupport.h
parent138897cc065e7acd2fac56b17faf5c0806f86684 (diff)
fix bug #524: Pardiso's parameter array does not have to be aligned!
Diffstat (limited to 'Eigen/src/PardisoSupport/PardisoSupport.h')
-rw-r--r--Eigen/src/PardisoSupport/PardisoSupport.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Eigen/src/PardisoSupport/PardisoSupport.h b/Eigen/src/PardisoSupport/PardisoSupport.h
index e6defc8c3..d623bf518 100644
--- a/Eigen/src/PardisoSupport/PardisoSupport.h
+++ b/Eigen/src/PardisoSupport/PardisoSupport.h
@@ -108,6 +108,7 @@ class PardisoImpl
typedef Matrix<Scalar,Dynamic,1> VectorType;
typedef Matrix<Index, 1, MatrixType::ColsAtCompileTime> IntRowVectorType;
typedef Matrix<Index, MatrixType::RowsAtCompileTime, 1> IntColVectorType;
+ typedef Array<Index,64,1,DontAlign> ParameterType;
enum {
ScalarIsComplex = NumTraits<Scalar>::IsComplex
};
@@ -142,7 +143,7 @@ class PardisoImpl
/** \warning for advanced usage only.
* \returns a reference to the parameter array controlling PARDISO.
* See the PARDISO manual to know how to use it. */
- Array<Index,64,1>& pardisoParameterArray()
+ ParameterType& pardisoParameterArray()
{
return m_iparm;
}
@@ -295,7 +296,7 @@ class PardisoImpl
bool m_initialized, m_analysisIsOk, m_factorizationIsOk;
Index m_type, m_msglvl;
mutable void *m_pt[64];
- mutable Array<Index,64,1> m_iparm;
+ mutable ParameterType m_iparm;
mutable IntColVectorType m_perm;
Index m_size;