Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
arr
fun
vec_concat.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_ARR_FUN_VEC_CONCAT_HPP
2
#define STAN_MATH_PRIM_ARR_FUN_VEC_CONCAT_HPP
3
4
#include <
stan/math/prim/meta.hpp
>
5
#include <type_traits>
6
#include <vector>
7
8
namespace
stan
{
9
namespace
math {
10
16
template
<
typename
T>
17
inline
const
std::vector<T>&
vec_concat
(
const
std::vector<T>& v1) {
18
return
v1;
19
}
20
28
template
<
typename
T,
typename
... Args>
29
inline
const
std::vector<T>
vec_concat
(
const
std::vector<T>& v1,
30
const
Args... args) {
31
std::vector<T> vec =
vec_concat
(args...);
32
vec.insert(vec.end(), v1.begin(), v1.end());
33
return
vec;
34
}
35
}
// namespace math
36
}
// namespace stan
37
38
#endif
stan::math::vec_concat
const std::vector< T > & vec_concat(const std::vector< T > &v1)
Ends the recursion to extract the event stack.
Definition:
vec_concat.hpp:17
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
[
Stan Home Page
]
© 2011–2018, Stan Development Team.