Put changes back in which seogi reversed. Changed dependent property.

This commit is contained in:
rowanc1
2014-05-02 12:02:46 -07:00
parent b9b5bc9bc9
commit d8863c7c4c
5 changed files with 79 additions and 11 deletions
+11
View File
@@ -330,3 +330,14 @@ def invPropertyTensor(M, tensor, returnMatrix=False):
return makePropertyTensor(M, T)
return T
from scipy.sparse.linalg import LinearOperator
class SimPEGLinearOperator(LinearOperator):
"""Extends scipy.sparse.linalg.LinearOperator to have a .T function."""
@property
def T(self):
return self.__class__((self.shape[1],self.shape[0]),self.rmatvec,rmatvec=self.matvec,matmat=self.matmat)