ensemble_hic/forcefields.py
def energy(self, structure):
        """
        Cython implementation of the potential energy

        :param structure: coordinates of a structure
        :type structure: :class:`numpy.ndarray`

        :returns: potential energy of a structure
        :rtype: float
        """
        from ensemble_hic.forcefield_c import forcefield_energy
        
        E = forcefield_energy(structure, self.bead_radii,
                              self.bead_radii2,
                              self.force_constant)

        return E

        Cython implementation of the potential energy

        :param structure: coordinates of a structure
        :type structure: :class:`numpy.ndarray`

        :returns: potential energy of a structure
        :rtype: float
        
Cython implementation of the potential energy
Cython implementation of the potential energy
def energy(self, structure):
        from ensemble_hic.forcefield_c import forcefield_energy
        E = forcefield_energy(structure, self.bead_radii,
                              self.bead_radii2,
                              self.force_constant)
        return E
def energy ( self , structure ) : from ensemble_hic . forcefield_c import forcefield_energy E = forcefield_energy ( structure , self . bead_radii , self . bead_radii2 , self . force_constant ) return E
Cython implementation of the potential energy
Cython implementation of the potential energy
"""
        Cython implementation of the potential energy

        :param structure: coordinates of a structure
        :type structure: :class:`numpy.ndarray`

        :returns: potential energy of a structure
        :rtype: float
        """
potential energy of a structure
potential energy of a structure
float
self
structure
coordinates of a structure
coordinates of a structure