Use pade for matrix exponential also for complex values.

This commit is contained in:
Michael Tesch 2019-05-08 17:04:55 +02:00
parent 56bc4974fb
commit c5019f722b

View File

@ -411,7 +411,7 @@ template<typename Derived> struct MatrixExponentialReturnValue
inline void evalTo(ResultType& result) const inline void evalTo(ResultType& result) const
{ {
const typename internal::nested_eval<Derived, 10>::type tmp(m_src); const typename internal::nested_eval<Derived, 10>::type tmp(m_src);
internal::matrix_exp_compute(tmp, result, internal::is_exp_known_type<typename Derived::Scalar>()); internal::matrix_exp_compute(tmp, result, internal::is_exp_known_type<typename Derived::RealScalar>());
} }
Index rows() const { return m_src.rows(); } Index rows() const { return m_src.rows(); }