All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
check_cov_matrix.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_ERR_CHECK_COV_MATRIX_HPP
#define STAN_MATH_PRIM_MAT_ERR_CHECK_COV_MATRIX_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/err/check_pos_definite.hpp>
namespace stan {
namespace math {
using Eigen::Dynamic;
template <typename T_y>
inline bool
check_cov_matrix(const char* function,
const char* name,
const Eigen::Matrix<T_y, Dynamic, Dynamic>& y) {
check_pos_definite(function, name, y);
return true;
}
}
}
#endif
stan::math::check_cov_matrix
bool check_cov_matrix(const char *function, const char *name, const Eigen::Matrix< T_y, Dynamic, Dynamic > &y)
Return true if the specified matrix is a valid covariance matrix.
Definition: check_cov_matrix.hpp:32
stan::math::check_pos_definite
bool check_pos_definite(const char *function, const char *name, const Eigen::Matrix< T_y, Dynamic, Dynamic > &y)
Return true if the specified square, symmetric matrix is positive definite.
Definition: check_pos_definite.hpp:38
Eigen.hpp
check_pos_definite.hpp

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