simpeg.potential_fields.gravity.Simulation3DIntegral.getJ#
- Simulation3DIntegral.getJ(m, f=None)[source]#
Sensitivity matrix \(\mathbf{J}\).
- 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.ndarrayor scipy.sparse.linalg.LinearOperator. Array or
LinearOperatorfor the \(\mathbf{J}\) matrix. ALinearOperatorwill be returned ifstore_sensitivitiesis"forward_only", otherwise a dense array will be returned.
- (
Notes
If
store_sensitivitiesis"ram"or"disk", a dense array for theJmatrix is returned. ALinearOperatoris returned ifstore_sensitivitiesis"forward_only". This object can perform operations likeJ @ morJ.T @ vwithout allocating the fullJmatrix in memory.