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

◆ from_matrix_cl() [6/7]

template<typename T_dst , typename T , require_std_vector_vt< is_var, T_dst > * = nullptr, require_all_stan_scalar_t< value_type_t< T_dst > > * = nullptr, require_all_kernel_expressions_t< T > * = nullptr>
T_dst stan::math::from_matrix_cl ( const var_value< T > &  a)
inline

Copies the source var that has data stored on the OpenCL device to destination std::vector containing vars.

Copies the source var that has data stored on the OpenCL device to destination std::vector containing either Eigen vectors of vars or vars containing Eigen vectors.

Template Parameters
T_dstdestination type
Ttype of the matrix or expression on the OpenCL device
Parameters
asource matrix_cl or expression
Returns
var with a copy of the data on the host

Definition at line 159 of file copy.hpp.