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

◆ indexing_rev()

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.

Parameters
[in,out]adjadjoint of the argument to indexing
idxindices
resadjoint of the result of the indexing operation

Definition at line 22 of file indexing_rev.hpp.