1 #ifndef __STAN__MATH__REP_ARRAY_HPP__
2 #define __STAN__MATH__REP_ARRAY_HPP__
15 std::stringstream msg;
16 msg <<
"error in " << fun
17 <<
"; number of replications must be positive"
19 throw std::domain_error(msg.str());
26 return std::vector<T>(n,x);
30 inline std::vector<std::vector<T> >
35 return vector<vector<T> >(m, vector<T>(n, x));
39 inline std::vector<std::vector<std::vector<T> > >
45 return vector<vector<vector<T> > >(k,