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

◆ partial_derivative()

template<typename T , typename F >
void stan::math::partial_derivative ( const F &  f,
const Eigen::Matrix< T, Eigen::Dynamic, 1 > &  x,
int  n,
T &  fx,
T &  dfx_dxn 
)

Return the partial derivative of the specified multivariate function at the specified argument.

Template Parameters
TArgument type
FFunction type
Parameters
fFunction
[in]xArgument vector
[in]nIndex of argument with which to take derivative
[out]fxValue of function applied to argument
[out]dfx_dxnValue of partial derivative

Definition at line 25 of file partial_derivative.hpp.