1 #ifndef STAN_MATH_PRIM_MAT_FUN_MATRIX_EXP_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_MATRIX_EXP_HPP 21 Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>
22 matrix_exp(
const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> A) {
void check_nonzero_size(const char *function, const char *name, const T_y &y)
Check if the specified matrix/vector is of non-zero size.
T value_of(const fvar< T > &v)
Return the value of the specified variable.
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > matrix_exp_2x2(const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &A)
Return the matrix exponential of a 2x2 matrix.
fvar< T > square(const fvar< T > &x)
void check_square(const char *function, const char *name, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Check if the specified matrix is square.
MatrixType matrix_exp_pade(const MatrixType &arg)
Computes the matrix exponential, using a Pade approximation, coupled with scaling and squaring...
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > matrix_exp(const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > A)
Return the matrix exponential of the input matrix.