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

◆ copy_cl()

template<typename T , require_matrix_cl_t< T > * = nullptr>
plain_type_t< T > stan::math::copy_cl ( const T &  src)
inline

Copies the source matrix to the destination matrix.

Both matrices are stored on the OpenCL device.

Template Parameters
TAn arithmetic type to pass the value from the OpenCL matrix to.
Parameters
srcthe source matrix
Returns
matrix_cl with copies of values in the source matrix
Exceptions
<code>std::invalid_argument</code>if the matrices do not have matching dimensions

Definition at line 340 of file copy.hpp.