Working for mumps

This commit is contained in:
seogi
2014-05-02 11:45:20 -07:00
parent fc80c84ed1
commit b9b5bc9bc9
5 changed files with 19 additions and 80 deletions
-11
View File
@@ -330,14 +330,3 @@ 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)