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

◆ initialize_buffer() [1/2]

template<typename T >
template<bool in_order = false>
cl::Event stan::math::matrix_cl< T >::initialize_buffer ( const T *  A)
inlineprivateinherited

Initializes the OpenCL buffer of this matrix by copying the data from given buffer.

Assumes that size of this is already set and matches the buffer size.

The caller must make sure that data is not deleted as long as this matrix_cl is in use (std::move-ing it or using raw buffer() also counts as in use).

Template Parameters
in_orderwhether copying must be done in order efficiently use it directly
Parameters
Apointer to buffer
Returns
event for the copy

Definition at line 551 of file matrix_cl.hpp.