1#ifndef STAN_MATH_OPENCL_PRIM_TO_ARRAY_1D_HPP
2#define STAN_MATH_OPENCL_PRIM_TO_ARRAY_1D_HPP
19template <
typename T_x,
20 require_nonscalar_prim_or_rev_kernel_expression_t<T_x>* =
nullptr>
22 return to_matrix(std::forward<T_x>(x), x.size(), 1);
T_x to_matrix(T_x &&x)
Returns input matrix.
auto to_array_1d(T_x &&x)
Returns input matrix reshaped into a vector.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...