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

◆ set_zero_adjoint()

template<typename T >
void stan::math::vari_value< T, require_all_t< is_plain_type< T >, is_eigen_dense_base< T > > >::set_zero_adjoint ( )
inlinefinalvirtual

Set the adjoint value of this variable to 0.

This is used to reset adjoints before propagating derivatives again (for example in a Jacobian calculation).

Implements stan::math::vari_base.

Definition at line 778 of file vari.hpp.