| Stan Math Library 2.12.0 reverse mode automatic differentiation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
4 #include <stan/math/prim/mat/fun/common_type.hpp>
5 #include <stan/math/prim/mat/fun/promoter.hpp>
6
7 namespace stan {
8 namespace math {
9
10 template <typename T1, typename T2, typename F>
11 inline
12 typename common_type<T1, T2>::type
13 promote_common(const F& u) {
14 return promoter<F, typename common_type<T1, T2>::type>
15 ::promote_to(u);
16 }
17
18 }
19 }
20
21 #endif
stan
Definition: log_sum_exp.hpp:8
promoter.hpp
stan::math::promote_common
common_type< T1, T2 >::type promote_common(const F &u)
Definition: promote_common.hpp:13
common_type.hpp
stan::math::promoter
Definition: promoter.hpp:13

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