Ejemplo n.º 1
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         modified_fire = ModifiedFireCPP(_xrand, pot)
         modified_fire.run()
Ejemplo n.º 2
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         lbfgs = LBFGS_CPP(_xrand, pot)
         lbfgs.run()
Ejemplo n.º 3
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         lbfgs = LBFGS_CPP(_xrand, pot)
         lbfgs.run()
Ejemplo n.º 4
0
 def setUp(self):
     self.pot = _lj_cpp._ErrorPotential()
     self.x = np.random.uniform(-1, 1, [9])
Ejemplo n.º 5
0
 def test_raises(self):
     pot = _lj_cpp._ErrorPotential()
     with self.assertRaises(RuntimeError):
         cgd = CGDescent(_xrand, pot)
         cgd.run()
Ejemplo n.º 6
0
 def setUp(self):
     self.pot = _lj_cpp._ErrorPotential()
     self.x = np.random.uniform(-1, 1, [9])