Adding new Jacobians¶
This section describes how to add further methods to approximate the Jacobian within FitBenchmarking
In order to add a new Jacobian evaluation method, you will need to:
- Give the Jacobian a name using the following convention
<num_method>. An example could be
<num_method>which would call the SciPy’s 2-point finite difference approximation.
fitbenchmarking/jacobian/<jac_method>_<num_method>_jacobian.py, which contains a new subclass of
Jacobian. Then implement the method
eval(), which evaluates the Jacobian. The numerical method is set sequentially within
loop_over_jacobians()by using the
methodattribute of the class.
- Document the available Jacobians by:
- Create tests for the Jacobian evaluation in