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

◆ matrix_vector_multiply()

template<typename T_matrix , typename T_vector , typename = require_all_kernel_expressions_t<T_matrix, T_vector>>
auto stan::math::matrix_vector_multiply ( T_matrix &&  matrix,
T_vector &&  vector 
)
inline

Multiplies a matrix and a vector on an OpenCL device.

Template Parameters
T_matrixtype of the matrix or matrix expression
T_vectortype of the vector or vector expression
Parameters
matrixthe matrix
vectorthe vector
Returns
matrix-vector multiplication expression
Exceptions
invalid_argumentvector has more than column or matrix has different number of rows than vector columns.

Definition at line 27 of file matrix_vector_multiply.hpp.