simpeg.potential_fields.gravity.Simulation3DIntegral.getJ#

Simulation3DIntegral.getJ(m, f=None)[source]#

Sensitivity matrix J.

Parameters:
m(n_param,) numpy.ndarray

The model parameters.

fIgnored

Not used, present here for API consistency by convention.

Returns:
(nD, n_active_cells) np.ndarray or scipy.sparse.linalg.LinearOperator.

Array or LinearOperator for the J matrix. A LinearOperator will be returned if store_sensitivities is "forward_only", otherwise a dense array will be returned.

Notes

If store_sensitivities is "ram" or "disk", a dense array for the J matrix is returned. A LinearOperator is returned if store_sensitivities is "forward_only". This object can perform operations like J @ m or J.T @ v without allocating the full J matrix in memory.