1 #ifndef STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_SPSD_MATRIX_HPP
2 #define STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_SPSD_MATRIX_HPP
28 template <
typename T_y,
typename T_result>
30 const Eigen::Matrix<T_y,Eigen::Dynamic,Eigen::Dynamic>& y,
bool check_spsd_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 square, symmetric, and positive semi-definite.
bool check_pos_semidefinite(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_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_positive(const char *function, const T_y &y, const char *name, T_result *result)
bool check_square(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 square.