Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
to_array_2d.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_OPENCL_PRIM_TO_ARRAY_2D_HPP
2
#define STAN_MATH_OPENCL_PRIM_TO_ARRAY_2D_HPP
3
#ifdef STAN_OPENCL
4
5
#include <
stan/math/opencl/matrix_cl.hpp
>
6
7
namespace
stan
{
8
namespace
math {
9
19
template
<
typename
T_x,
20
require_nonscalar_prim_or_rev_kernel_expression_t<T_x>* =
nullptr
>
21
inline
T_x
to_array_2d
(T_x&& x) {
22
return
std::forward<T_x>(x);
23
}
24
25
}
// namespace math
26
}
// namespace stan
27
#endif
28
#endif
stan::math::to_array_2d
T_x to_array_2d(T_x &&x)
Returns input matrix converted into a nested std vector.
Definition
to_array_2d.hpp:21
matrix_cl.hpp
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
stan
math
opencl
prim
to_array_2d.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.