Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
arr
fun
promote_scalar_type.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_ARR_FUN_PROMOTE_SCALAR_TYPE_HPP
2
#define STAN_MATH_PRIM_ARR_FUN_PROMOTE_SCALAR_TYPE_HPP
3
4
#include <
stan/math/prim/meta.hpp
>
5
#include <
stan/math/prim/scal/fun/promote_scalar_type.hpp
>
6
#include <vector>
7
8
namespace
stan
{
9
namespace
math {
10
19
template
<
typename
T,
typename
S>
20
struct
promote_scalar_type
<T,
std
::vector<S> > {
24
typedef
std::vector<typename promote_scalar_type<T, S>::type>
type
;
25
};
26
27
}
// namespace math
28
}
// namespace stan
29
#endif
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
std
Definition:
std_numeric_limits.hpp:7
stan::math::promote_scalar_type
Template metaprogram to calculate a type for converting a convertible type.
Definition:
promote_scalar_type.hpp:16
promote_scalar_type.hpp
stan::math::promote_scalar_type< T, std::vector< S > >::type
std::vector< typename promote_scalar_type< T, S >::type > type
The promoted type.
Definition:
promote_scalar_type.hpp:24
[
Stan Home Page
]
© 2011–2018, Stan Development Team.