Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Copies the source Eigen matrix, std::vector
or scalar to the destination matrix that is stored on the OpenCL device.
The function also accepts matrix_cl
s in which case it just returns the argument. If a lvalue matrix is passed to this function the caller must make sure that the matrix does not go out of scope before copying is complete.
That means .wait()
must be called on the event associated on copying or any other event that requires completion of this event. This can be done by calling .wait_for_write_events()
or .wait_for_read_write_events()
on returned matrix or any matrix that is calculated from that one.
src | source Eigen matrix |