jacobian#

named_arrays.jacobian(function, x, dx=None)#

Compute the Jacobian of the given function using the first-order finite difference method.

Parameters:
  • function (Callable[[InputT], OutputT]) – The function to compute the Jacobian of

  • x (InputT) – The point to evaluate the function

  • dx (None | InputT) – The distance that x will be perturbed by to compute the slope

Return type:

AbstractMatrixArray