diff options
author | 2014-09-18 17:31:17 +0200 | |
---|---|---|
committer | 2014-09-18 17:31:17 +0200 | |
commit | 62bce6e5e6da71dd8d85ae229d24b9f9f13d1681 (patch) | |
tree | 9c2bff02dc2e1ae21bbe698b466a74e1d9bb5966 /unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h | |
parent | 060e835ee9f7a3abb9ff3d9f2522027bf2f98efe (diff) |
Make MatrixFunction use nested_eval instead of nested
Diffstat (limited to 'unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h')
-rw-r--r-- | unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index 160120d03..9e0545660 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -392,14 +392,15 @@ template<typename Derived> struct MatrixExponentialReturnValue template <typename ResultType> inline void evalTo(ResultType& result) const { - internal::matrix_exp_compute(m_src, result); + const typename internal::nested_eval<Derived, 10>::type tmp(m_src); + internal::matrix_exp_compute(tmp, result); } Index rows() const { return m_src.rows(); } Index cols() const { return m_src.cols(); } protected: - const typename internal::nested<Derived, 10>::type m_src; + const typename internal::nested<Derived>::type m_src; }; namespace internal { |