Beispiel #1
0
 def getEnergy(self, coords):
     print "getting energy only"
     grad=np.zeros(coords.shape[0], np.float64)
     E = s.gradient(coords, grad, self.mu)
     return E
Beispiel #2
0
 def getEnergyGradient(self, coords):
     grad = np.zeros(coords.shape[0], np.float64)
     E = s.gradient(coords, grad, self.mu)
     return E, grad
Beispiel #3
0
 def getEnergyGradient(self, coords):
     grad=np.zeros(coords.shape[0], np.float64)
     E = s.gradient(coords, grad, self.mu)
     return E, grad 
Beispiel #4
0
 def getEnergy(self, coords):
     print "getting energy only"
     grad = np.zeros(coords.shape[0], np.float64)
     E = s.gradient(coords, grad, self.mu)
     return E