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_SCAL_FUN_COMMON_TYPE_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_COMMON_TYPE_HPP
3 
4 #include <boost/math/tools/promotion.hpp>
5 
6 namespace stan {
7  namespace math {
23  template <typename T1, typename T2>
24  struct common_type {
25  typedef typename boost::math::tools::promote_args<T1, T2>::type type;
26  };
27 
28  }
29 }
30 
31 #endif
Struct which calculates type promotion given two types.
Definition: common_type.hpp:24
boost::math::tools::promote_args< T1, T2 >::type type
Definition: common_type.hpp:25

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