Stan Math Library
2.15.0
reverse mode automatic differentiation
stan
math
prim
mat
fun
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/promote_elements.hpp
>
6
7
namespace
stan
{
8
namespace
math {
9
21
template
<
typename
T1,
typename
T2,
typename
F>
22
inline
23
typename
common_type<T1, T2>::type
24
promote_common
(
const
F& u) {
25
return
promote_elements<typename common_type<T1, T2>::type
, F>
26
::promote(u);
27
}
28
29
}
30
}
31
32
#endif
stan::math::promote_elements
Struct with static function for elementwise type promotion.
Definition:
promote_elements.hpp:16
common_type.hpp
stan
Definition:
log_sum_exp.hpp:8
stan::math::promote_common
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...
Definition:
promote_common.hpp:24
stan::math::common_type::type
boost::math::tools::promote_args< T1, T2 >::type type
Definition:
common_type.hpp:25
promote_elements.hpp
[
Stan Home Page
]
© 2011–2016, Stan Development Team.