def testNoScaling(self): self.LU = PysparseUmfpackSolver(self.A, scale='none') self.LU.solve(self.b) self.failUnless(self.computeError(self.LU.sol) < self.tol)
def testScaleMax(self): self.LU = PysparseUmfpackSolver(self.A, scale='max') self.LU.solve(self.b) self.failUnless(self.computeError(self.LU.sol) < self.tol)
def test2by2(self): self.LU = PysparseUmfpackSolver(self.A, strategy='2by2') self.LU.solve(self.b) self.failUnless(self.computeError(self.LU.sol) < self.tol)
def testSymmetric(self): self.LU = PysparseUmfpackSolver(self.A, strategy='symmetric') self.LU.solve(self.b) self.failUnless(self.computeError(self.LU.sol) < self.tol)
def testVanilla(self): self.LU = PysparseUmfpackSolver(self.A) self.LU.solve(self.b) self.failUnless(self.computeError(self.LU.sol) < self.tol)
def testPoisson2dUnsymmetric(self): self.LU = PysparseUmfpackSolver(self.B, strategy='unsymmetric') self.LU.solve(self.b) self.failUnless(self.computeError(self.LU.sol) < self.tol)
def testPoisson2dDefault(self): self.LU = PysparseUmfpackSolver(self.B) self.LU.solve(self.b) self.failUnless(self.computeError(self.LU.sol) < self.tol)