Stan Math Library  2.20.0
reverse mode automatic differentiation
promote_scalar_type.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_ARR_FUN_PROMOTE_SCALAR_TYPE_HPP
2 #define STAN_MATH_PRIM_ARR_FUN_PROMOTE_SCALAR_TYPE_HPP
3 
6 #include <vector>
7 
8 namespace stan {
9 namespace math {
10 
19 template <typename T, typename S>
20 struct promote_scalar_type<T, std::vector<S> > {
24  typedef std::vector<typename promote_scalar_type<T, S>::type> type;
25 };
26 
27 } // namespace math
28 } // namespace stan
29 #endif
Template metaprogram to calculate a type for converting a convertible type.
std::vector< typename promote_scalar_type< T, S >::type > type
The promoted type.

     [ Stan Home Page ] © 2011–2018, Stan Development Team.