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

◆ to_matrix_cl() [5/5]

template<typename T , require_eigen_vt< is_var, T > * = nullptr>
var_value< matrix_cl< value_type_t< value_type_t< T > > > > stan::math::to_matrix_cl ( const std::vector< T > &  src)
inline

Copies the source vector of Eigen matrices of vars to the destination matrix that is stored on the OpenCL device.

Each element of the vector is stored into one column of the returned matrix_cl.

Parameters
srcsource vector of Eigen matrices
Returns
matrix_cl with a copy of the data in the source matrix

Definition at line 89 of file copy.hpp.