Accumulate adjoints from std::vector x into storage pointed to by dest, increment the adjoint storage pointer, recursively accumulate the adjoints of the rest of the arguments, and return final position of storage pointer.
- Template Parameters
-
Pargs | Types of remaining arguments |
- Parameters
-
dest | Pointer to where adjoints are to be accumulated |
x | A std::vector of vars |
args | Further args to accumulate over |
- Returns
- Final position of adjoint storage pointer
Definition at line 71 of file accumulate_adjoints.hpp.