Stan Math Library  2.15.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 
5 #include <vector>
6 
7 namespace stan {
8  namespace math {
9 
18  template <typename T, typename S>
19  struct promote_scalar_type<T, std::vector<S> > {
23  typedef std::vector<typename promote_scalar_type<T, S>::type> type;
24  };
25 
26  }
27 }
28 #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–2016, Stan Development Team.