SimPEG.regularization.CrossGradient.deriv2#

CrossGradient.deriv2(model, v=None)[source]#

Computes the Hessian of the cross-gradient.

Parameters
  • ind_models (list of numpy.ndarray) – [model1, model2, …]

  • v (numpy.ndarray) – vector to be multiplied by Hessian

Return type

scipy.sparse.csr_matrix if v is None numpy.ndarray if v is not None

:return Hessian matrix if v is None

Hessian multiplied by vector if v is not No