1 #ifndef STAN_MATH_PRIM_ARR_FUN_PROMOTE_ELEMENTS_HPP 2 #define STAN_MATH_PRIM_ARR_FUN_PROMOTE_ELEMENTS_HPP 20 template <
typename T,
typename S>
28 inline static std::vector<T>
promote(
const std::vector<S>& u) {
31 for (
size_t i = 0; i < u.size(); ++i)
52 inline static const std::vector<T>&
promote(
const std::vector<T>& u) {