simpeg.maps.InjectActiveCells.deriv#

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

Derivative of the mapping with respect to the input parameters.

For a discrete set of model parameters m defined on a set of active cells, the mapping u(m) is defined as:

u(m)=Pm+dm

where P is a (nC , nP) projection matrix from active cells to all mesh cells, and d is a (nC , 1) matrix that projects the inactive cell value m to all inactive mesh cells.

the deriv method returns the derivative of u with respect to the model parameters; i.e.:

um=P

Note that in this case, deriv simply returns a sparse projection matrix.

Parameters:
m(nP) numpy.ndarray

A vector representing a set of model parameters

v(nP) numpy.ndarray

If not None, the method returns the derivative times the vector v

Returns:
scipy.sparse.csr_matrix

Derivative of the mapping with respect to the model parameters. If the input argument v is not None, the method returns the derivative times the vector v.