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

◆ deep_copy_vars() [3/5]

template<typename VarVec , require_std_vector_vt< is_var, VarVec > * = nullptr>
auto stan::math::deep_copy_vars ( VarVec &&  arg)
inline

Copy the vars in arg but reallocate new varis for them.

Template Parameters
VarVecA variant of std::vector<var>
Parameters
argA std::vector of vars
Returns
A new std::vector of vars

Definition at line 45 of file deep_copy_vars.hpp.