1#ifndef STAN_MATH_PRIM_FUN_ONES_ARRAY_HPP
2#define STAN_MATH_PRIM_FUN_ONES_ARRAY_HPP
19 return std::vector<double>(K, 1);
void check_nonnegative(const char *function, const char *name, const T_y &y)
Check if y is non-negative.
std::vector< double > ones_array(int K)
Return an array of ones.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...