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

◆ from_matrix_cl() [5/7]

template<typename T_dst , typename T , require_var_vt< is_eigen, 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 var containing Eigen matrix.

Copies the source var that has data stored on the OpenCL device to destination Eigen matrix containing vars.

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 118 of file copy.hpp.