aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h
diff options
context:
space:
mode:
Diffstat (limited to 'unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h')
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h
index d7eb1b2fe..5d47f2cec 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h
@@ -296,6 +296,7 @@ void MatrixExponential<MatrixType>::computeUV(double)
template<typename Derived> struct MatrixExponentialReturnValue
: public ReturnByValue<MatrixExponentialReturnValue<Derived> >
{
+ typedef typename Derived::Index Index;
public:
/** \brief Constructor.
*
@@ -317,8 +318,8 @@ template<typename Derived> struct MatrixExponentialReturnValue
me.compute(result);
}
- int rows() const { return m_src.rows(); }
- int cols() const { return m_src.cols(); }
+ Index rows() const { return m_src.rows(); }
+ Index cols() const { return m_src.cols(); }
protected:
const Derived& m_src;