Stan
1.3
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
Pages
src
stan
math
matrix
promote_common.hpp
Go to the documentation of this file.
1
#ifndef __STAN__MATH__MATRIX__PROMOTE_COMMON_HPP__
2
#define __STAN__MATH__MATRIX__PROMOTE_COMMON_HPP__
3
4
#include <
stan/math/matrix/common_type.hpp
>
5
#include <
stan/math/matrix/promoter.hpp
>
6
7
namespace
stan {
8
9
namespace
math {
10
11
template
<
typename
T1,
typename
T2,
typename
F>
12
inline
13
typename
common_type<T1,T2>::type
14
promote_common
(
const
F& u) {
15
return
promoter<F, typename common_type<T1,T2>::type
>
16
::promote_to(u);
17
}
18
19
}
20
}
21
22
23
#endif
[
Stan Home Page
]
© 2011–2013, Stan Development Team.