simpeg.optimization.NewtonRoot.root#

NewtonRoot.root(fun, x)[source]#

Function Should have the form:

def evalFunction(x, return_g=False):
        out = (f,)
        if return_g:
            out += (g,)
        return out if len(out) > 1 else out[0]