1#ifndef STAN_MATH_PRIM_ERR_VALIDATE_POSITIVE_INDEX_HPP
2#define STAN_MATH_PRIM_ERR_VALIDATE_POSITIVE_INDEX_HPP
24 std::stringstream msg;
25 msg <<
"Found dimension size less than one in simplex declaration"
26 <<
"; variable=" << var_name <<
"; dimension size expression=" << expr
27 <<
"; expression value=" << val;
28 std::string msg_str(msg.str());
29 throw std::invalid_argument(msg_str.c_str());
void validate_positive_index(const char *var_name, const char *expr, int val)
Check that simplex is at least size 1.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...