1 #ifndef STAN_MATH_PRIM_MAT_FUN_INVERSE_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_INVERSE_HPP 15 template <
typename T,
int R,
int C>
16 inline Eigen::Matrix<T, R, C>
inverse(
const Eigen::Matrix<T, R, C>& m) {
void check_square(const char *function, const char *name, const matrix_cl &y)
Check if the matrix_cl is square.
Eigen::Matrix< fvar< T >, R, C > inverse(const Eigen::Matrix< fvar< T >, R, C > &m)