Automatic Differentiation
 
Loading...
Searching...
No Matches
append_array.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_PRIM_APPEND_ARRAY_HPP
2#define STAN_MATH_OPENCL_PRIM_APPEND_ARRAY_HPP
3#ifdef STAN_OPENCL
4
7
8namespace stan {
9namespace math {
10
21template <
22 typename T_x, typename T_y,
23 require_all_nonscalar_prim_or_rev_kernel_expression_t<T_x, T_y>* = nullptr>
24inline auto append_array(T_x&& x, T_y&& y) {
25 return append_row(std::forward<T_x>(x), std::forward<T_y>(y));
26}
27} // namespace math
28} // namespace stan
29#endif
30#endif
auto append_row(Ta &&a, Tb &&b)
Stack the rows of the first argument on top of the second argument.
Definition append.hpp:183
auto append_array(T_x &&x, T_y &&y)
Return the concatenation of two specified vectors in the order of the arguments.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...