SimPEG.objective_function.L2ObjectiveFunction.test#
- L2ObjectiveFunction.test(x=None, num=4, **kwargs)[source]#
Run a convergence test on both the first and second derivatives.
They should be second order!
- Parameters:
- x
Noneor(n_param, )numpy.ndarray,optional The evaluation point for the Taylor expansion.
- num
int The number of iterations in the convergence test.
- x
- Returns:
- bool
Trueif both tests pass.Falseif either test fails.