1 #ifndef STAN_MATH_MIX_MAT_FUNCTOR_DERIVATIVE_HPP 2 #define STAN_MATH_MIX_MAT_FUNCTOR_DERIVATIVE_HPP 23 template <
typename T,
typename F>
24 void derivative(
const F& f,
const T& x, T& fx, T& dfx_dx) {
T d_
The tangent (derivative) of this variable.
T val_
The value of this variable.
void derivative(const F &f, const T &x, T &fx, T &dfx_dx)
Return the derivative of the specified univariate function at the specified argument.
This template class represents scalars used in forward-mode automatic differentiation, which consist of values and directional derivatives of the specified template type.