simpeg.regularization.CrossGradient.deriv2#
- CrossGradient.deriv2(model, v=None)[source]#
Hessian of the regularization function evaluated for the model provided.
Where
is the discrete regularization function (objective function), this method evalutate and returns the second derivative (Hessian) with respect to the model parameters: For a model consisting of two physical properties such that:The Hessian has the form:
When a vector
is supplied, the method returns the Hessian times the vector:- Parameters:
- model(
n_param
, )numpy.ndarray
The model; a vector array containing all physical properties.
- v
None
, (n_param
, )numpy.ndarray
(optional
) A numpy array to model the Hessian by.
- model(
- Returns:
- (
n_param
,n_param
)scipy.sparse.csr_matrix
| (n_param
, )numpy.ndarray
If the input argument v is
None
, the Hessian for the models provided is returned. If v is notNone
, the Hessian multiplied by the vector provided is returned.
- (