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

◆ deep_copy_vars() [4/5]

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

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

Template Parameters
VecContainerstd::vector<T> where T is another type containing vars
Parameters
argA std::vector of containers containing vars
Returns
A new std::vector of containers containing vars

Definition at line 63 of file deep_copy_vars.hpp.