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

◆ to_matrix_cl() [3/5]

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

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

Template Parameters
Ttype of the std::vector
Parameters
asource Eigen matrix
Returns
var with a copy of the data on the OpenCL device

Definition at line 49 of file copy.hpp.