SimPEG.maps.LinearMap#

class SimPEG.maps.LinearMap(A, b=None, **kwargs)[source]#

Bases: IdentityMap

A generalized linear mapping.

A simple map that implements the linear mapping,

>>> y = A @ x + b
Parameters:
A(M, N) array_like, optional

The matrix operator, can be any object that implements __matmul__ and has a shape attribute.

b(M) array_like, optional

Additive part of the linear operation.

Attributes

A

The linear operator matrix.

b

Added part of the linear operation.

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 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])

Derivative test for the mapping.