Use pade for matrix exponential also for complex values.

(grafted from c5019f722bc76537ec56947e75fc4169deceffcd
)
This commit is contained in:
Michael Tesch 2019-05-08 17:04:55 +02:00
parent 4387298e80
commit 841d844f9c

View File

@ -412,7 +412,7 @@ template<typename Derived> struct MatrixExponentialReturnValue
inline void evalTo(ResultType& result) const
{
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(); }