1 #ifndef STAN_MATH_PRIM_MAT_ERR_IS_CORR_MATRIX_HPP 2 #define STAN_MATH_PRIM_MAT_ERR_IS_CORR_MATRIX_HPP 28 template <
typename T_y>
30 const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y) {
32 Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic> >::type size_t;
41 for (
size_t k = 0; k < y.rows(); ++k) {
fvar< T > fabs(const fvar< T > &x)
const double CONSTRAINT_TOLERANCE
The tolerance for checking arithmetic bounds In rank and in simplexes.
Primary template class for the metaprogram to compute the index type of a container.
bool is_positive(const T_y &y)
Return true if y is positive.
bool is_pos_definite(const Eigen::Matrix< T_y, -1, -1 > &y)
Return true if the matrix is square or if the matrix has non-zero size, or if the matrix is symmetric...
bool is_symmetric(const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Return true if the matrix is square, and no element not on the main diagonal is NaN.
bool is_size_match(T_size1 i, T_size2 j)
Return true if the provided sizes match.
bool is_corr_matrix(const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Return true if the matrix is square and not 0x0, if the matrix is symmetric, diagonals are near 1...