1#ifndef STAN_MATH_PRIM_ERR_IS_CORR_MATRIX_HPP
2#define STAN_MATH_PRIM_ERR_IS_CORR_MATRIX_HPP
29template <
typename EigMat, require_eigen_matrix_dynamic_t<EigMat>* =
nullptr>
32 const auto& y_ref =
to_ref(y);
43 for (Eigen::Index k = 0; k < y_ref.rows(); ++k) {
bool is_size_match(T_size1 i, T_size2 j)
Return true if the provided sizes match.
bool is_positive(const T_y &y)
Return true if y is positive.
bool is_corr_matrix(const EigMat &y)
Return true if the matrix is square and not 0x0, if the matrix is symmetric, diagonals are near 1,...
bool is_pos_definite(const EigMat &y)
Return true if the matrix is square or if the matrix has non-zero size, or if the matrix is symmetric...
ref_type_t< T && > to_ref(T &&a)
This evaluates expensive Eigen expressions.
bool is_symmetric(const EigMat &y)
Return true if the matrix is square, and no element not on the main diagonal is NaN.
const double CONSTRAINT_TOLERANCE
The tolerance for checking arithmetic bounds in rank and in simplexes.
fvar< T > fabs(const fvar< T > &x)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...