simpeg.regularization.CrossGradient.deriv#

CrossGradient.deriv(model)[source]#

Gradient of the regularization function evaluated for the model provided.

Where ϕ(m) is the discrete regularization function (objective function), this method evaluates and returns the derivative with respect to the model parameters; i.e. the gradient. For a model m consisting of two physical properties such that:

m=[m1m2]

The gradient has the form:

2ϕm=[ϕm1ϕm2]
Parameters:
model(n_param, ) numpy.ndarray

The model; a vector array containing all physical properties.

Returns:
(n_param, ) numpy.ndarray

Gradient of the regularization function evaluated for the model provided.