1 #ifndef STAN_MATH_PRIM_SCAL_FUN_PROMOTE_SCALAR_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_PROMOTE_SCALAR_HPP
21 template <
typename T,
typename S>
68 template <
typename T,
typename S>
78 static std::vector<typename promote_scalar_type<T, S>::type>
79 apply(
const std::vector<S>& x) {
80 typedef std::vector<typename promote_scalar_type<T, S>::type> return_t;
83 for (idx_t i = 0; i < x.size(); ++i)
98 template <
typename T,
typename S>
99 typename promote_scalar_type<T, S>::type
promote_scalar_type< T, S >::type promote_scalar(const S &x)
This is the top-level function to call to promote the scalar types of an input of type S to type T...
Primary template class for the metaprogram to compute the index type of a container.