コード例 #1
0
 def testNoScaling(self):
     self.LU = PysparseUmfpackSolver(self.A, scale='none')
     self.LU.solve(self.b)
     self.failUnless(self.computeError(self.LU.sol) < self.tol)
コード例 #2
0
 def testScaleMax(self):
     self.LU = PysparseUmfpackSolver(self.A, scale='max')
     self.LU.solve(self.b)
     self.failUnless(self.computeError(self.LU.sol) < self.tol)
コード例 #3
0
 def test2by2(self):
     self.LU = PysparseUmfpackSolver(self.A, strategy='2by2')
     self.LU.solve(self.b)
     self.failUnless(self.computeError(self.LU.sol) < self.tol)
コード例 #4
0
 def testSymmetric(self):
     self.LU = PysparseUmfpackSolver(self.A, strategy='symmetric')
     self.LU.solve(self.b)
     self.failUnless(self.computeError(self.LU.sol) < self.tol)
コード例 #5
0
 def testVanilla(self):
     self.LU = PysparseUmfpackSolver(self.A)
     self.LU.solve(self.b)
     self.failUnless(self.computeError(self.LU.sol) < self.tol)
コード例 #6
0
 def testPoisson2dUnsymmetric(self):
     self.LU = PysparseUmfpackSolver(self.B, strategy='unsymmetric')
     self.LU.solve(self.b)
     self.failUnless(self.computeError(self.LU.sol) < self.tol)
コード例 #7
0
 def testPoisson2dDefault(self):
     self.LU = PysparseUmfpackSolver(self.B)
     self.LU.solve(self.b)
     self.failUnless(self.computeError(self.LU.sol) < self.tol)