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

◆ primitive_value() [1/4]

template<typename T >
double stan::math::primitive_value ( const fvar< T > &  v)
inline

Return the primitive value of the specified forward-mode autodiff variable.

This function applies recursively to higher-order autodiff types to return a primitive double value.

Template Parameters
Tinner type of the fvar
Parameters
vinput variable.
Returns
primitive value of input.

Definition at line 21 of file primitive_value.hpp.