1#ifndef STAN_MATH_PRIM_FUN_INVERSE_HPP
2#define STAN_MATH_PRIM_FUN_INVERSE_HPP
23template <
typename EigMat,
24 require_eigen_vt<std::is_arithmetic, EigMat>* =
nullptr>
25inline Eigen::Matrix<value_type_t<EigMat>, EigMat::RowsAtCompileTime,
26 EigMat::ColsAtCompileTime>
void check_square(const char *function, const char *name, const T_y &y)
Check if the specified matrix is square.
Eigen::Matrix< value_type_t< EigMat >, EigMat::RowsAtCompileTime, EigMat::ColsAtCompileTime > inverse(const EigMat &m)
Forward mode specialization of calculating the inverse of the matrix.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...