Stan Math Library
4.9.0
Automatic Differentiation
|
|
inlineexplicit |
Construct from array
with given rows and columns.
The memory might be directly used by the device. The caller must make sure that it does not go out of scope as long as this matrix_cl
is in use (std::move
-ing it or using raw buffer()
also counts as in use).
A | array of doubles |
R | Number of rows the matrix should have. |
C | Number of columns the matrix should have. |
partial_view | which part of the matrix is used |
<code>std::system_error</code> | if the memory on the device could not be allocated |
Definition at line 418 of file matrix_cl.hpp.