1#ifndef STAN_MATH_PRIM_FUN_UNIFORM_SIMPLEX_HPP
2#define STAN_MATH_PRIM_FUN_UNIFORM_SIMPLEX_HPP
20 return Eigen::VectorXd::Constant(K, 1.0 / K);
auto uniform_simplex(int K)
Return a uniform simplex of size K.
void check_positive(const char *function, const char *name, const T_y &y)
Check if y is positive.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...