Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ matrix_exp_2x2()

template<typename EigMat , require_eigen_t< EigMat > * = nullptr>
Eigen::Matrix< value_type_t< EigMat >, Eigen::Dynamic, Eigen::Dynamic > stan::math::matrix_exp_2x2 ( const EigMat &  A)

Return the matrix exponential of a 2x2 matrix.

Reference for algorithm: http://mathworld.wolfram.com/MatrixExponential.html Note: algorithm only works if delta > 0;

Template Parameters
EigMattype of the matrix
Parameters
[in]A2x2 matrix to exponentiate.
Returns
Matrix exponential of A.

Definition at line 26 of file matrix_exp_2x2.hpp.