Stan Math Library  2.20.0
reverse mode automatic differentiation
check_cov_matrix.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_ERR_CHECK_COV_MATRIX_HPP
2 #define STAN_MATH_PRIM_MAT_ERR_CHECK_COV_MATRIX_HPP
3 
7 
8 namespace stan {
9 namespace math {
24 template <typename T_y>
25 inline void check_cov_matrix(
26  const char* function, const char* name,
27  const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y) {
28  check_pos_definite(function, name, y);
29 }
30 
31 } // namespace math
32 } // namespace stan
33 #endif
void check_cov_matrix(const char *function, const char *name, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Check if the specified matrix is a valid covariance matrix.
void check_pos_definite(const char *function, const char *name, const Eigen::Matrix< T_y, -1, -1 > &y)
Check if the specified square, symmetric matrix is positive definite.

     [ Stan Home Page ] © 2011–2018, Stan Development Team.