fitbenchmarking.jacobian.SciPyFD_2point_jacobian module

Module which calculates SciPy 2 point finite difference approximation

class fitbenchmarking.jacobian.SciPyFD_2point_jacobian.ScipyTwoPoint(problem)

Bases: fitbenchmarking.jacobian.base_jacobian.Jacobian

Implements SciPy 2 point finite difference approximation to the derivative

eval(params, func=None, **kwargs)

Evaluates Jacobian

Parameters:
  • params (list) – The parameter values to find the Jacobian at
  • func (Callable, optional) – Function to find the Jacobian for, defaults to problem.eval_r
Returns:

Approximation of the Jacobian

Return type:

numpy array