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

◆ derivative()

template<typename T , typename F >
void stan::math::derivative ( const F &  f,
const T &  x,
T &  fx,
T &  dfx_dx 
)

Return the derivative of the specified univariate function at the specified argument.

Template Parameters
TArgument type
FFunction type
Parameters
[in]fFunction
[in]xArgument
[out]fxValue of function applied to argument
[out]dfx_dxValue of derivative

Definition at line 24 of file derivative.hpp.