1 #ifndef STAN_MATH_PRIM_MAT_ERR_CHECK_SPSD_MATRIX_HPP 2 #define STAN_MATH_PRIM_MAT_ERR_CHECK_SPSD_MATRIX_HPP 25 template <
typename T_y>
27 const char*
function,
const char* name,
28 const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y) {
void check_square(const char *function, const char *name, const matrix_cl &y)
Check if the matrix_cl is square.
void check_pos_semidefinite(const char *function, const char *name, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Check if the specified matrix is positive definite.
void check_spsd_matrix(const char *function, const char *name, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Check if the specified matrix is a square, symmetric, and positive semi-definite. ...
void check_positive(const char *function, const char *name, const T_y &y)
Check if y is positive.
void check_symmetric(const char *function, const char *name, const matrix_cl &y)
Check if the matrix_cl is symmetric.