Accumulate adjoints from x (a std::vector of containers containing vars) 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
-
VecContainer | the type of a standard container holding var containers. |
Pargs | Types of remaining arguments |
- Parameters
-
dest | Pointer to where adjoints are to be accumulated |
x | A std::vector of containers holding vars |
args | Further args to accumulate over |
- Returns
- Final position of adjoint storage pointer
Definition at line 96 of file accumulate_adjoints.hpp.