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

◆ from_matrix_cl() [3/7]

template<typename T_dst , typename T , require_arithmetic_t< T > * = nullptr, require_same_t< T_dst, T > * = nullptr>
T_dst stan::math::from_matrix_cl ( const matrix_cl< T > &  src)
inline

Copy A 1 by 1 source matrix from the Device to the host.

Copies the source matrix that is stored on the OpenCL device to the destination std::vector containing Eigen vectors.

Copies the source matrix that is stored on the OpenCL device to the destination std::vector.

Template Parameters
TAn arithmetic type to pass the value from the OpenCL matrix to.
Parameters
srcA 1x1 matrix on the device.
Returns
dst Arithmetic to receive the matrix_cl value.
Template Parameters
T_dstdestination type
Tscalar in the source matrix
Parameters
srcsource matrix on the OpenCL device
Returns
std::vector with a copy of the data in the source matrix
Template Parameters
T_dstdestination type
Tscalar in the source matrix
Parameters
srcsource matrix on the OpenCL device
Returns
std::vector containing Eigen vectors with a copy of the data in the source matrix

Definition at line 147 of file copy.hpp.