Stan Math Library  2.20.0
reverse mode automatic differentiation
promote_common.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_FUN_PROMOTE_COMMON_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_PROMOTE_COMMON_HPP
3 
6 
7 namespace stan {
8 namespace math {
9 
21 template <typename T1, typename T2, typename F>
22 inline typename common_type<T1, T2>::type promote_common(const F& u) {
24 }
25 
26 } // namespace math
27 } // namespace stan
28 
29 #endif
Struct with static function for elementwise type promotion.
common_type< T1, T2 >::type promote_common(const F &u)
Return the result of promoting either a scalar or the scalar elements of a container to either of two...
boost::math::tools::promote_args< T1, T2 >::type type
Definition: common_type.hpp:26

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