1 #ifndef STAN__MATH__FUNCTIONS__PROMOTE_SCALAR_HPP
2 #define STAN__MATH__FUNCTIONS__PROMOTE_SCALAR_HPP
20 template <
typename T,
typename S>
69 template <
typename T,
typename S>
80 static std::vector<typename promote_scalar_type<T,S>::type>
81 apply(
const std::vector<S>& x) {
82 typedef std::vector<typename promote_scalar_type<T,S>::type> return_t;
85 for (idx_t i = 0; i < x.size(); ++i)
101 template <
typename T,
typename S>
102 typename promote_scalar_type<T,S>::type
Primary template class for the metaprogram to compute the index type of a container.
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...