Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ to_ref_for_opencl()

template<typename T >
ref_type_for_opencl_t< T && > stan::math::to_ref_for_opencl ( T &&  a)
inline

Converts given Eigen expression into one that can be directly copied to an OpenCL device to create matrix_cl.

If given expression can be directly copied, this is a no-op that should be optimized away.

Template Parameters
Targument type
Parameters
aargument
Returns
optionally evaluated argument

Definition at line 19 of file to_ref_for_opencl.hpp.