Stan Math Library
2.15.0
reverse mode automatic differentiation
stan
math
prim
scal
fun
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
stan
Definition:
log_sum_exp.hpp:8
stan::math::common_type
Struct which calculates type promotion given two types.
Definition:
common_type.hpp:24
stan::math::common_type::type
boost::math::tools::promote_args< T1, T2 >::type type
Definition:
common_type.hpp:25
[
Stan Home Page
]
© 2011–2016, Stan Development Team.