geometric/internal.py
def derivatives(self, coords):
        """ Obtain the change of the DLCs with respect to the Cartesian coordinates. """
        PrimDers = self.Prims.derivatives(coords)
        # The following code does the same as "tensordot"
        # print PrimDers.shape
        # print self.Vecs.shape
        # Answer = np.zeros((self.Vecs.shape[1], PrimDers.shape[1], PrimDers.shape[2]), dtype=float)
        # for i in range(self.Vecs.shape[1]):
        #     for j in range(self.Vecs.shape[0]):
        #         Answer[i, :, :] += self.Vecs[j, i] * PrimDers[j, :, :]
        # print Answer.shape
        Answer1 = np.tensordot(self.Vecs, PrimDers, axes=(0, 0))
        return np.array(Answer1)
 Obtain the change of the DLCs with respect to the Cartesian coordinates. 
Obtain the change of the DLCs with respect to the Cartesian coordinates.
Obtain the change of the DLCs with respect to the Cartesian coordinates .
def derivatives(self, coords):
        PrimDers = self.Prims.derivatives(coords)
        Answer1 = np.tensordot(self.Vecs, PrimDers, axes=(0, 0))
        return np.array(Answer1)
def derivatives ( self , coords ) : PrimDers = self . Prims . derivatives ( coords ) Answer1 = np . tensordot ( self . Vecs , PrimDers , axes = ( 0 , 0 ) ) return np . array ( Answer1 )
Obtain the change of the DLCs with respect to the Cartesian coordinates.
Obtain the change of the DLCs with respect to the Cartesian coordinates .
""" Obtain the change of the DLCs with respect to the Cartesian coordinates. """ # The following code does the same as "tensordot" # print PrimDers.shape # print self.Vecs.shape # Answer = np.zeros((self.Vecs.shape[1], PrimDers.shape[1], PrimDers.shape[2]), dtype=float) # for i in range(self.Vecs.shape[1]): #     for j in range(self.Vecs.shape[0]): #         Answer[i, :, :] += self.Vecs[j, i] * PrimDers[j, :, :] # print Answer.shape
self
coords