1#ifndef STAN_MATH_PRIM_FUN_IDENTITY_MATRIX_HPP
2#define STAN_MATH_PRIM_FUN_IDENTITY_MATRIX_HPP
18template <
typename T = Eigen::MatrixXd, require_eigen_t<T>* =
nullptr>
21 return T::Identity(K, K);
void check_nonnegative(const char *function, const char *name, const T_y &y)
Check if y is non-negative.
auto identity_matrix(int K)
Return a square identity matrix.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...