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

◆ grad() [2/2]

template<typename T >
void stan::math::var_value< T, require_floating_point_t< T > >::grad ( )
inline

Compute the gradient of this (dependent) variable with respect to all (independent) variables.

Template Parameters
CheckContainerNot set by user. The default value of value_type is used to require that grad is only available for scalar var_value types. The grad() function does not recover memory.

Definition at line 149 of file var.hpp.