Stan Math Library
4.9.0
Automatic Differentiation
|
void stan::math::indexing_rev | ( | matrix_cl< double > & | adj, |
const matrix_cl< int > & | idx, | ||
const matrix_cl< double > & | res | ||
) |
Performs reverse pass for indexing operation on the OpenCL device.
Depending on the size of indexed matrix and the amount of local memory available on the device selects the best kernel to use for the operation.
[in,out] | adj | adjoint of the argument to indexing |
idx | indices | |
res | adjoint of the result of the indexing operation |
Definition at line 22 of file indexing_rev.hpp.