simpeg.potential_fields.gravity.Simulation3DIntegral.getJ#
- Simulation3DIntegral.getJ(m, f=None)[source]#
Sensitivity matrix
.- Parameters:
- m(n_param,)
numpy.ndarray
The model parameters.
- f
Ignored
Not used, present here for API consistency by convention.
- m(n_param,)
- Returns:
- (
nD
,n_active_cells
)np.ndarray
or scipy.sparse.linalg.LinearOperator. Array or
LinearOperator
for the matrix. ALinearOperator
will be returned ifstore_sensitivities
is"forward_only"
, otherwise a dense array will be returned.
- (
Notes
If
store_sensitivities
is"ram"
or"disk"
, a dense array for theJ
matrix is returned. ALinearOperator
is returned ifstore_sensitivities
is"forward_only"
. This object can perform operations likeJ @ m
orJ.T @ v
without allocating the fullJ
matrix in memory.