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

◆ save_varis() [5/6]

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

Ignore arithmetic types.

Recursively call save_varis on the rest of the arguments and return the final value of the dest storage pointer.

Template Parameters
ArithAn arithmetic type
PargsTypes of remaining arguments
Parameters
[in,out]destPointer to where vari pointers are saved
[in]xAn argument not containing vars
[in]argsAdditional arguments to have their varis saved
Returns
Final position of dest pointer

Definition at line 135 of file save_varis.hpp.