1 #ifndef STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_COV_MATRIX_HPP
2 #define STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_COV_MATRIX_HPP
28 template <
typename T_y,
typename T_result>
30 const Eigen::Matrix<T_y,Eigen::Dynamic,Eigen::Dynamic>& y,
34 y.rows(),
"Rows of covariance matrix",
35 y.cols(),
"columns of covariance matrix",
bool check_cov_matrix(const char *function, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y, const char *name, T_result *result)
Return true if the specified matrix is a valid covariance matrix.
bool check_size_match(const char *function, T_size1 i, const char *name_i, T_size2 j, const char *name_j, T_result *result)
bool check_symmetric(const char *function, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y, const char *name, T_result *result)
Return true if the specified matrix is symmetric.
bool check_pos_definite(const char *function, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y, const char *name, T_result *result)
Return true if the specified matrix is positive definite.
bool check_positive(const char *function, const T_y &y, const char *name, T_result *result)