cleaned out transform, inverse and deriv (all are inherited from IdentityMap)

This commit is contained in:
Lindsey Heagy
2015-11-28 13:12:44 -08:00
parent 83cb5ce46a
commit cfc921b667
-42
View File
@@ -148,48 +148,6 @@ class IdentityMap_Meshless(IdentityMap):
return (self.nP, self.nP)
def _transform(self, m):
"""
Changes the model into the physical property.
.. note::
This can be called by the __mul__ property against a numpy.ndarray.
:param numpy.array m: model
:rtype: numpy.array
:return: transformed model
"""
return m
def inverse(self, D):
"""
Changes the physical property into the model.
.. note::
The *transformInverse* may not be easy to create in general.
:param numpy.array D: physical property
:rtype: numpy.array
:return: model
"""
raise NotImplementedError('The transformInverse is not implemented.')
def deriv(self, m):
"""
The derivative of the transformation.
:param numpy.array m: model
:rtype: scipy.csr_matrix
:return: derivative of transformed model
"""
return sp.identity(self.nP)
class ComboMap(IdentityMap):
"""Combination of various maps."""