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

◆ set_zero_all_adjoints_nested()

static void stan::math::set_zero_all_adjoints_nested ( )
inlinestatic

Reset all adjoint values in the top nested portion of the stack to zero.

It is preferred to use the nested_rev_autodiff class for nested autodiff class as it handles recovery of memory automatically.

Definition at line 20 of file set_zero_all_adjoints_nested.hpp.