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

◆ save_varis() [1/6]

template<typename... Pargs>
vari ** stan::math::save_varis ( vari **  dest,
const var x,
Pargs &&...  args 
)
inline

Save the vari pointer in x into the memory pointed to by dest, increment the dest storage pointer, recursively call save_varis on the rest of the arguments, and return the final value of the dest storage pointer.

Template Parameters
PargsTypes of remaining arguments
Parameters
[in,out]destPointer to where vari pointers are saved
[in]xA var
[in]argsAdditional arguments to have their varis saved
Returns
Final position of dest pointer

Definition at line 51 of file save_varis.hpp.