Stan Math Library  2.15.0
reverse mode automatic differentiation
common_type.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_ARR_FUN_COMMON_TYPE_HPP
2 #define STAN_MATH_PRIM_ARR_FUN_COMMON_TYPE_HPP
3 
5 #include <boost/math/tools/promotion.hpp>
6 #include <vector>
7 
8 namespace stan {
9  namespace math {
18  template <typename T1, typename T2>
19  struct common_type<std::vector<T1>, std::vector<T2> > {
20  typedef std::vector<typename common_type<T1, T2>::type> type;
21  };
22 
23  }
24 }
25 
26 #endif
std::vector< typename common_type< T1, T2 >::type > type
Definition: common_type.hpp:20
Struct which calculates type promotion given two types.
Definition: common_type.hpp:24

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