1#ifndef STAN_MATH_PRIM_ERR_IS_CHOLESKY_FACTOR_CORR_HPP
2#define STAN_MATH_PRIM_ERR_IS_CHOLESKY_FACTOR_CORR_HPP
25template <
typename EigMat, require_eigen_matrix_dynamic_t<EigMat>* =
nullptr>
27 const auto& y_ref =
to_ref(y);
31 for (
int i = 0; i < y_ref.rows(); ++i) {
bool is_cholesky_factor_corr(const EigMat &y)
Return true if y is a valid Cholesky factor, if the number of rows is not less than the number of col...
ref_type_t< T && > to_ref(T &&a)
This evaluates expensive Eigen expressions.
bool is_unit_vector(const EigVec &theta)
Return true if the vector is not a unit vector or if any element is NaN.
bool is_cholesky_factor(const EigMat &y)
Return true if y is a valid Cholesky factor, if number of rows is not less than the number of columns...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...