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

◆ zero_adjoints() [4/5]

template<typename EigMat , require_eigen_vt< is_autodiff, EigMat > * = nullptr>
void stan::math::zero_adjoints ( EigMat &  x)
inline

Zero the adjoints of the varis of every var in an Eigen::Matrix container.

Recursively call zero_adjoints on the rest of the arguments.

Template Parameters
Ttype of current argument
Pargstype of rest of arguments
Parameters
xcurrent argument
argsrest of arguments to zero

Definition at line 52 of file zero_adjoints.hpp.