SimPEG.maps.IdentityMap.shape#

property IdentityMap.shape#

Dimensions of the mapping operator

The dimensions of the mesh depend on the input arguments used during instantiation. If mesh is used to define the identity map, the shape of mapping operator is (mesh.nC, mesh.nC). If nP is used to define the identity map, the mapping operator has dimensions (nP, nP). However if both mesh and nP are used to define the identity map, the mapping will have shape (mesh.nC, nP)! And if mesh and nP were None when instantiating, the mapping has dimensions (*, *) and may act on a vector of any length.

Returns:
tuple

Dimensions of the mapping operator. If the dimensions of the mapping are set, the return is a tuple (int,``int``). If the mapping can act on a vector of arbitrary length, the return is a tuple (*, *).