1#ifndef STAN_MATH_PRIM_ERR_CHECK_COV_MATRIX_HPP
2#define STAN_MATH_PRIM_ERR_CHECK_COV_MATRIX_HPP
28template <
typename Mat, require_matrix_t<Mat>* =
nullptr>
51template <
typename StdVec, require_std_vector_t<StdVec>* =
nullptr>
53 for (
auto&& y_i : y) {
void check_pos_definite(const char *function, const char *name, const EigMat &y)
Check if the specified square, symmetric matrix is positive definite.
void check_cov_matrix(const char *function, const char *name, const Mat &y)
Throw an exception if the specified matrix is not a valid covariance matrix.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...