simpeg.data_misfit.L2DataMisfit.deriv2#
- L2DataMisfit.deriv2(m, v, f=None)[source]#
- Hessian of the data misfit function evaluated for the model provided. - Where \(\phi_d (\mathbf{m})\) is the data misfit function, this method returns the second-derivative (Hessian) with respect to the model parameters: \[\frac{\partial^2 \phi_d}{\partial \mathbf{m}^2}\]- or the second-derivative (Hessian) multiplied by a vector \((\mathbf{v})\): \[\frac{\partial^2 \phi_d}{\partial \mathbf{m}^2} \, \mathbf{v}\]- Parameters:
- m(n_param, )numpy.ndarray
- The model for which the Hessian is evaluated. 
- vNoneor(n_param, )numpy.ndarray,optional
- A vector. 
 
- m(
- Returns:
- (n_param,n_param)scipy.sparse.csr_matrixor(n_param, )numpy.ndarray
- If the input argument v is - None, the Hessian of the data misfit function for the model provided is returned. If v is not- None, the Hessian multiplied by the vector provided is returned.
 
- (
 
