1#ifndef STAN_MATH_PRIM_FUN_CSR_U_TO_Z
2#define STAN_MATH_PRIM_FUN_CSR_U_TO_Z
26 check_range(
"csr_u_to_z",
"i", u.size(), i + 1,
"index out of range");
27 return u[i + 1] - u[i];
void check_range(const char *function, const char *name, int max, int index, int nested_level, const char *error_msg)
Check if specified index is within range.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...