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

◆ operator+=()

template<typename... T_results>
template<typename... T_expressions, typename = std::enable_if_t<sizeof...(T_results) == sizeof...(T_expressions)>>
void stan::math::adjoint_results_cl< T_results >::operator+= ( const expressions_cl< T_expressions... > &  exprs)
inline

Incrementing adjoint_results_cl object by expressions_cl object executes one or two kernels that evaluate expressions and increments results' adjoints by those expressions.

Non-var results are ignored. Scalar results's adjoints get incremented by the sum of respective expressions.

Template Parameters
T_expressionstypes of expressions
Parameters
exprsexpressions

Definition at line 40 of file adjoint_results.hpp.