simpeg.electromagnetics.static.spontaneous_potential.CurrentDensityMap.deriv#
- CurrentDensityMap.deriv(m, v=None)[source]#
Derivative of the mapping with respect to the input parameters.
- 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
- m(
- Returns:
scipy.sparse.csr_matrixornumpy.ndarrayDerivative of the mapping with respect to the model parameters. For an identity mapping, this is just a sparse identity matrix. If the input argument v is not
None, the method returns the derivative times the vector v; which in this case is just v.
Notes
Let
be a set of model parameters and let denote the identity map. Where the identity mapping acting on the model parameters can be expressed as:the deriv method returns the derivative of
with respect to the model parameters; i.e.:For the Identity map deriv simply returns a sparse identity matrix.