1#ifndef STAN_MATH_MIX_FUNCTOR_DERIVATIVE_HPP
2#define STAN_MATH_MIX_FUNCTOR_DERIVATIVE_HPP
23template <
typename T,
typename F>
24void derivative(
const F& f,
const T& x, T& fx, T& dfx_dx) {
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.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Scalar val_
The value of this variable.
Scalar d_
The tangent (derivative) of this variable.
This template class represents scalars used in forward-mode automatic differentiation,...