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

◆ save_varis() [4/6]

template<typename EigT , require_eigen_vt< is_var, EigT > * = nullptr, typename... Pargs>
vari ** stan::math::save_varis ( vari **  dest,
EigT &&  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
EigTAn Eigen type with var value type
PargsTypes of remaining arguments
Parameters
[in,out]destPointer to where vari pointers are saved
[in]xAn Eigen container of vars
[in]argsAdditional arguments to have their varis saved
Returns
Final position of dest pointer

Definition at line 114 of file save_varis.hpp.