1 #ifndef STAN_MATH_PRIM_ARR_FUN_PROMOTE_SCALAR_HPP
2 #define STAN_MATH_PRIM_ARR_FUN_PROMOTE_SCALAR_HPP
21 template <
typename T,
typename S>
31 static std::vector<typename promote_scalar_type<T, S>::type>
32 apply(
const std::vector<S>& x) {
33 typedef std::vector<typename promote_scalar_type<T, S>::type> return_t;
36 for (idx_t i = 0; i < x.size(); ++i)
Primary template class for the metaprogram to compute the index type of a container.