|
TMB Documentation
v1.9.11
|
Automatic differentiation (gradient, hessian, jacobian) More...
Functions | |
| template<class Functor , class Type > | |
| vector< Type > | gradient (Functor F, vector< Type > x) |
| Calculate gradient of vector function with scalar values. More... | |
| template<class Functor , class Type > | |
| matrix< Type > | hessian (Functor f, vector< Type > x) |
| Calculate hessian of vector function with scalar values. More... | |
| template<class Functor , class Type > | |
| matrix< Type > | jacobian (Functor f, vector< Type > x) |
| Calculate jacobian of vector function with vector values. More... | |
Automatic differentiation (gradient, hessian, jacobian)
| vector<Type> autodiff::gradient | ( | Functor | F, |
| vector< Type > | x | ||
| ) |
Calculate gradient of vector function with scalar values.
| F | Functor with scalar values |
| x | Vector evaluation point |
Example:
Definition at line 67 of file autodiff.hpp.
| matrix<Type> autodiff::hessian | ( | Functor | f, |
| vector< Type > | x | ||
| ) |
Calculate hessian of vector function with scalar values.
| f | Functor with scalar values |
| x | Vector evaluation point |
Example:
Definition at line 134 of file autodiff.hpp.
| matrix<Type> autodiff::jacobian | ( | Functor | f, |
| vector< Type > | x | ||
| ) |
Calculate jacobian of vector function with vector values.
| f | Functor with vector values |
| x | Vector evaluation point |
Example:
Definition at line 203 of file autodiff.hpp.
Referenced by density::MVNORM_t< scalartype >::operator()(), density::N01< scalartype_ >::operator()(), density::AR1_t< distribution >::operator()(), density::ARk_t< scalartype_ >::operator()(), density::contAR2_t< scalartype_ >::operator()(), density::SCALE_t< distribution >::operator()(), and density::VECSCALE_t< distribution >::operator()().