Skip to main content

Module derivatives_vectors

Module derivatives_vectors 

Source
Expand description

Finite difference gradients, Hessians and Jacobians of functions of several variables.

See the book entry Finite difference derivatives.

Functions§

gradient_2_point
The gradient ∇f(x) of a scalar function of several variables by central differences, one coordinate at a time (2n evaluations).
hessian_2_point
The Hessian ∇²f(x) of a scalar function by central differences: second differences on the diagonal and the four-point cross difference off it (1 + 2n + 2n(n − 1) evaluations).
jacobian_2_point
The Jacobian ∂fᵢ/∂xⱼ of a vector-valued function by central differences (2n + 1 evaluations); row i is the gradient of component i.