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

◆ save_varis() [2/6]

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

Save the vari pointers 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
VarVecA variant of std::vector<var>
PargsTypes of remaining arguments
Parameters
[in,out]destPointer to where vari pointers are saved
[in]xA std::vector of vars
[in]argsAdditional arguments to have their varis saved
Returns
Final position of dest pointer

Definition at line 71 of file save_varis.hpp.