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

◆ ADD_KG_COMPOUND_ASSIGMENT_OPERATOR

#define ADD_KG_COMPOUND_ASSIGMENT_OPERATOR (   independent,
  compound 
)
Value:
template <typename T1, typename T2, \
require_kernel_expression_lhs_t<T1>* = nullptr, \
require_all_kernel_expressions_t<T2>* = nullptr> \
T1 operator compound(T1&& a, T2&& b) { \
return a = a independent b; \
}

Adds a compound assignment operator for kernel generator expressions.

Parameters
independentindependent (non-compound) operator
compoundcompound operator

Definition at line 14 of file compound_assignments.hpp.