Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Construct an fvar<T> where the tangent is calculated by finite-differencing.
Finite-differencing is only perfomed where the scalar type to be evaluated is `fvar<T>.
Higher-order inputs (i.e., fvar & fvar<fvar<T>>) are also implicitly supported through auto-diffing the finite-differencing process.
F | Type of functor for which fvar<T> support is needed |
TArgs | Template parameter pack of the types passed in the operator() of the functor type F . Must contain at least on type whose scalar type is fvar<T> |
func | Functor for which fvar<T> support is needed |
args | Parameter pack of arguments to be passed to functor. |
Finite-differencing is only perfomed where the scalar type to be evaluated is `fvar<T>.
This overload is used when no fvar<T> arguments are passed and simply evaluates the functor with the provided arguments.
F | Type of functor |
TArgs | Template parameter pack of the types passed in the operator() of the functor type F . Must contain no type whose scalar type is fvar<T> |
func | Functor |
args... | Parameter pack of arguments to be passed to functor. |
Definition at line 69 of file finite_diff.hpp.