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

◆ matrix_cl() [7/13]

template<typename T >
stan::math::matrix_cl< T >::matrix_cl ( const int  rows,
const int  cols,
matrix_cl_view  partial_view = matrix_cl_view::Entire 
)
inline

Constructor for the matrix_cl that only allocates the buffer on the OpenCL device.

Regardless of partial_view, whole matrix is stored.

Parameters
rowsnumber of matrix rows, must be greater or equal to 0
colsnumber of matrix columns, must be greater or equal to 0
partial_viewwhich part of the matrix is used
Exceptions
<code>std::system_error</code>if the memory on the device could not be allocated

Definition at line 284 of file matrix_cl.hpp.