Template Class MeanFieldPSpinSpherical#
Defined in File pspin_spherical.hpp
Inheritance Relationships#
Base Type#
public pele::BasePotential(Class BasePotential)
Class Documentation#
-
template<size_t p>
class MeanFieldPSpinSpherical : public pele::BasePotential# Public Functions
-
inline virtual ~MeanFieldPSpinSpherical()#
- inline virtual double add_energy_gradient( )#
compute the energy and gradient, but don’t initialize the gradient to zero
- inline virtual double add_energy_gradient_hessian( )#
compute the energy, gradient, and Hessian, but don’t initialize the gradient or hessian to zero
-
inline virtual double get_energy(pele::Array<double> const &x)#
Return the energy of configuration x.
This is the only function which must be overloaded
- inline virtual double get_energy_gradient( )#
compute the energy and gradient.
If not overloaded it will compute the numerical gradient
- virtual void numerical_gradient( )#
compute the numerical gradient
Protected Functions
-
inline size_t m_get_index(size_t *comb)#
Protected Attributes
-
size_t m_N#
-
double m_tol#
-
double m_sqrt_N#
-
double m_N_prf#
-
pele::combination_generator<size_t*> m_combination_generator#
-
pele::combination_generator<size_t*> m_combination_generator_grad#
-
pele::combination_generator<size_t*> m_combination_generator_hess#
-
inline virtual ~MeanFieldPSpinSpherical()#