SimPEG.regularization.CrossGradient.calculate_cross_gradient#

CrossGradient.calculate_cross_gradient(model, normalized=False, rtol=1e-06)[source]#

Calculates the cross-gradients of the models at each cell center.

Parameters
modelnumpy.ndarray

The input model, which will be automatically separated into the two parameters internally

normalizedbool, optional

Whether to normalize the gradient

rtolfloat, optional

relative cuttoff for small gradients in the normalization

Returns
cross_gradnumpy.ndarray

The norm of the cross gradient vector in each active cell.