1 #ifndef STAN_MATH_PRIM_ARR_FUN_REP_ARRAY_HPP
2 #define STAN_MATH_PRIM_ARR_FUN_REP_ARRAY_HPP
14 return std::vector<T>(n, x);
18 inline std::vector<std::vector<T> >
23 return vector<vector<T> >(m, vector<T>(n, x));
27 inline std::vector<std::vector<std::vector<T> > >
33 return vector<vector<vector<T> > >(k,
std::vector< T > rep_array(const T &x, int n)
bool check_nonnegative(const char *function, const char *name, const T_y &y)
Return true if y is non-negative.