Stan Math Library  2.20.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 
5 #include <boost/math/tools/promotion.hpp>
6 
7 namespace stan {
8 namespace math {
24 template <typename T1, typename T2>
25 struct common_type {
26  typedef typename boost::math::tools::promote_args<T1, T2>::type type;
27 };
28 
29 } // namespace math
30 } // namespace stan
31 
32 #endif
Struct which calculates type promotion given two types.
Definition: common_type.hpp:25
boost::math::tools::promote_args< T1, T2 >::type type
Definition: common_type.hpp:26

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