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

◆ matrix_cl() [2/13]

template<typename T >
stan::math::matrix_cl< T >::matrix_cl ( const cl::Buffer &  A,
const int  R,
const int  C,
matrix_cl_view  partial_view = matrix_cl_view::Entire 
)
inline

Construct a matrix_cl<T> from an existing cl::Buffer object.

The matrix directly uses given buffer - no copying is done.

Parameters
Athe cl::Buffer object to construct the matrix from
Rnumber of rows
Cnumber of columns
partial_viewview of the matrix

Definition at line 190 of file matrix_cl.hpp.