mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-30 19:09:16 +08:00
Added inverse method to ActiveCells mapping.
This commit is contained in:
@@ -335,6 +335,10 @@ class ActiveCells(IdentityMap):
|
||||
|
||||
def _transform(self, m):
|
||||
return self.P*m + self.valInactive
|
||||
|
||||
def inverse(self, D):
|
||||
return self.P.T*D
|
||||
|
||||
def deriv(self, m):
|
||||
return self.P
|
||||
|
||||
|
||||
Reference in New Issue
Block a user