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