Stan Math Library
5.0.0
Automatic Differentiation
Loading...
Searching...
No Matches
to_ref_for_opencl.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_OPENCL_TO_REF_FOR_OPENCL_HPP
2
#define STAN_MATH_OPENCL_TO_REF_FOR_OPENCL_HPP
3
#ifdef STAN_OPENCL
4
5
#include <
stan/math/opencl/ref_type_for_opencl.hpp
>
6
7
namespace
stan
{
8
namespace
math {
9
18
template
<
typename
T>
19
inline
ref_type_for_opencl_t<T&&>
to_ref_for_opencl
(T&& a) {
20
return
std::forward<T>(a);
21
}
22
23
}
// namespace math
24
}
// namespace stan
25
26
#endif
27
#endif
stan::math::ref_type_for_opencl_t
typename ref_type_for_opencl< T >::type ref_type_for_opencl_t
Definition
ref_type_for_opencl.hpp:64
stan::math::to_ref_for_opencl
ref_type_for_opencl_t< T && > to_ref_for_opencl(T &&a)
Converts given Eigen expression into one that can be directly copied to an OpenCL device to create ma...
Definition
to_ref_for_opencl.hpp:19
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
ref_type_for_opencl.hpp
stan
math
opencl
to_ref_for_opencl.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.