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

◆ index()

template<typename T >
template<typename RowIndex , typename ColIndex >
auto stan::math::vari_cl_base< T >::index ( const RowIndex &  row_index,
const ColIndex &  col_index 
)
inlineinherited

Return indexed view into a matrix.

Do not use with indices that reference any element of this more than once - that cans cause data races in rev operations on the result!

Parameters
row_indexkg expression used for row index
col_indexkg expression used for column index

Definition at line 121 of file vari.hpp.