Test solver

This commit is contained in:
rowanc1
2014-05-17 17:44:26 -07:00
parent fb67aacc8d
commit e2635e4716
3 changed files with 30 additions and 36 deletions
+2 -3
View File
@@ -105,10 +105,9 @@ def SolverWrapI(fun, checkAccuracy=True, accuracyTol=1e-5):
return X
def clean(self):
if hasattr(self.solver, 'clean'):
return self.solver.clean()
pass
return type(fun.__name__, (object,), {"__init__": __init__, "clean": clean, "__mul__": __mul__})
return type(fun.__name__+'_Wrapped', (object,), {"__init__": __init__, "clean": clean, "__mul__": __mul__})
Solver = SolverWrapD(sp.linalg.spsolve, factorize=False)