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

◆ save_varis() [3/6]

template<typename VecContainer , require_std_vector_st< is_var, VecContainer > * = nullptr, require_std_vector_vt< is_container, VecContainer > * = nullptr, typename... Pargs>
vari ** stan::math::save_varis ( vari **  dest,
VecContainer &&  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
VecContainerstd::vector<T> where T is another type containing vars
PargsTypes of remaining arguments
Parameters
[in,out]destPointer to where vari pointers are saved
[in]xA std::vector of containers containing of vars
[in]argsAdditional arguments to have their varis saved
Returns
Final position of dest pointer

Definition at line 93 of file save_varis.hpp.