Class LowestEigPotential#

Inheritance Relationships#

Base Type#

Class Documentation#

class LowestEigPotential : public pele::BasePotential#

Public Functions

inline LowestEigPotential(
std::shared_ptr<pele::BasePotential> potential,
pele::Array<double> coords,
size_t bdim,
double d = 1e-6
)#
inline void set_x_opt(pele::Array<double> x)#
inline virtual ~LowestEigPotential()#
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(
pele::Array<double> const &x,
pele::Array<double> &grad
)#

compute the energy and gradient.

If not overloaded it will compute the numerical gradient

inline void reset_coords(pele::Array<double> const &new_coords)#

Protected Attributes

pele::Array<double> x_opt#

Points to the coordinates used in the optimizer.