simpeg.maps.Mesh2Mesh.deriv#

Mesh2Mesh.deriv(m, v=None)[source]#

Compute derivative of the mapping with respect to the model.

Parameters:
m(n_param,) numpy.ndarray

The model parameters

v(n_param,) numpy.ndarray, optional

A vector.

Returns:
numpy.ndarray

When v is None, a (n_cells, n_param) numpy.ndaray is returned which represents the derivative of the mapping with respect to the model. When v is a vector, an (n_cells,) numpy.ndarray representing the derivative of the mapping times the vector is returned.