simpeg.electromagnetics.natural_source.Simulation2DMagneticField.getJtJdiag#
- Simulation2DMagneticField.getJtJdiag(m, W=None, f=None)[source]#
Return the diagonal of
.Where
are the data and are the model parameters, the sensitivity matrix is defined as:This method returns the diagonals of
. When the W input argument is used to include a diagonal weighting matrix , this method returns the diagonal of .- Parameters:
- m(n_param,)
numpy.ndarray
The model parameters.
- W(
n_param
,n_param
)scipy.sparse.csr_matrix
A diagonal weighting matrix.
- f
frequency_domain.fields.FieldsFDEM
,optional
Fields solved for all sources.
- m(n_param,)
- Returns:
- (n_param,)
numpy.ndarray
The diagonals.
- (n_param,)