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

◆ deep_copy_vars() [5/5]

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

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

Template Parameters
EigTAn Eigen type with var value type
Parameters
argAn Eigen container of vars
Returns
A new Eigen container of vars

Definition at line 79 of file deep_copy_vars.hpp.