simpeg.maps.SurjectFull#

class simpeg.maps.SurjectFull(mesh, **kwargs)[source]#

Bases: IdentityMap

Mapping a single property value to all mesh cells.

Let \(m\) be a model defined by a single physical property value SurjectFull construct a surjective mapping that projects \(m\) to the set of voxel cells defining a mesh. The mapping \(\mathbf{u(m)}\) is a matrix of 1s of shape (mesh.nC , 1) that projects the model to all mesh cells, i.e.:

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

A discretize 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; i.e. 1.

shape

Dimensions of the mapping operator

Methods

deriv(m[, v])

Derivative of the mapping with respect to the input parameters.

dot(map1)

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

inverse(D)

The transform inverse is not implemented.

test([m, num, random_seed])

Derivative test for the mapping.