simpeg.maps.ReciprocalMap#

class simpeg.maps.ReciprocalMap(mesh=None, nP=None, **kwargs)[source]#

Bases: IdentityMap

Mapping that computes the reciprocals of the model parameters.

Where \(\mathbf{m}\) is a set of model parameters, ReciprocalMap creates a mapping \(\mathbf{u}(\mathbf{m})\) that computes the reciprocal of every element in \(\mathbf{m}\); i.e.:

\[\mathbf{u}(\mathbf{m}) = \mathbf{m}^{-1}\]
Parameters:
meshdiscretize.BaseMesh

The number of parameters accepted by the mapping is set to equal the number of mesh cells.

nPint

Set the number of parameters accepted by the mapping directly. Used if the number of parameters is known. Used generally when the number of parameters is not equal to the number of cells in a mesh.

Attributes

is_linear

Determine whether or not this mapping is a linear operation.

mesh

The mesh used for the mapping

nP

Number of parameters the mapping acts on.

shape

Dimensions of the mapping operator

Methods

deriv(m[, v])

Derivative of mapping with respect to the input parameters.

dot(map1)

Multiply two mappings to create a simpeg.maps.ComboMap.

inverse(D)

Apply the inverse of the reciprocal mapping to an array.

test([m, num, random_seed])

Derivative test for the mapping.

Galleries and Tutorials using simpeg.maps.ReciprocalMap#

Forward Simulation for Straight Ray Tomography in 2D

Forward Simulation for Straight Ray Tomography in 2D

Sparse Norm Inversion of 2D Seismic Tomography Data

Sparse Norm Inversion of 2D Seismic Tomography Data

Tensor Meshes

Tensor Meshes

Cylindrical Meshes

Cylindrical Meshes

Tree Meshes

Tree Meshes