Automatic Differentiation
 
Loading...
Searching...
No Matches
to_row_vector.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_PRIM_TO_ROW_VECTOR_HPP
2#define STAN_MATH_OPENCL_PRIM_TO_ROW_VECTOR_HPP
3#ifdef STAN_OPENCL
4
7
8namespace stan {
9namespace math {
10
19template <typename T_x,
20 require_nonscalar_prim_or_rev_kernel_expression_t<T_x>* = nullptr>
21inline auto to_row_vector(T_x&& x) {
22 return to_matrix(std::forward<T_x>(x), 1, x.size());
23}
24
25} // namespace math
26} // namespace stan
27#endif
28#endif
auto to_row_vector(T_x &&x)
Returns input matrix reshaped into a row vector.
T_x to_matrix(T_x &&x)
Returns input matrix.
Definition to_matrix.hpp:21
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...