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

◆ save_varis() [6/7]

template<typename Tuple , require_tuple_t< Tuple > * = nullptr, typename... Pargs>
vari ** stan::math::save_varis ( vari **  dest,
Tuple &&  x,
Pargs &&...  args 
)
inline

Save the vari pointers in a tuple into the memory pointed to by dest, then recursively save the varis in the remaining arguments.

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

Definition at line 155 of file save_varis.hpp.