Public Member Functions | Private Types | Private Attributes | List of all members
PLMD::gridtools::GridSearch< FCLASS > Class Template Reference

#include <GridSearch.h>

Public Member Functions

 GridSearch (const std::vector< double > &mmin, const std::vector< double > &mmax, const std::vector< unsigned > &ng, const std::vector< unsigned > &nfg, FCLASS *funcc)
 
bool minimise (std::vector< double > &p, engf_pointer myfunc)
 
void setGridElement (const unsigned &ind, const double &emin, const std::vector< double > &der)
 

Private Types

typedef double(FCLASS::* engf_pointer) (const std::vector< double > &p, std::vector< double > &der)
 This is the pointer to the member function in the energy calculating class that calculates the energy. More...
 

Private Attributes

FCLASS * myclass_func
 
GridCoordinatesObject myfgrid
 
GridCoordinatesObject mygrid
 
std::unique_ptr< Interpolatormyinterp
 
bool using_fgrid
 
std::unique_ptr< Valuevalue
 

Member Typedef Documentation

◆ engf_pointer

template<class FCLASS >
typedef double(FCLASS::* PLMD::gridtools::GridSearch< FCLASS >::engf_pointer) (const std::vector< double > &p, std::vector< double > &der)
private

This is the pointer to the member function in the energy calculating class that calculates the energy.

Constructor & Destructor Documentation

◆ GridSearch()

template<class FCLASS >
PLMD::gridtools::GridSearch< FCLASS >::GridSearch ( const std::vector< double > &  mmin,
const std::vector< double > &  mmax,
const std::vector< unsigned > &  ng,
const std::vector< unsigned > &  nfg,
FCLASS *  funcc 
)
inline

Member Function Documentation

◆ minimise()

template<class FCLASS >
bool PLMD::gridtools::GridSearch< FCLASS >::minimise ( std::vector< double > &  p,
engf_pointer  myfunc 
)

◆ setGridElement()

template<class FCLASS >
void PLMD::gridtools::GridSearch< FCLASS >::setGridElement ( const unsigned &  ind,
const double &  emin,
const std::vector< double > &  der 
)

Member Data Documentation

◆ myclass_func

template<class FCLASS >
FCLASS* PLMD::gridtools::GridSearch< FCLASS >::myclass_func
private

◆ myfgrid

template<class FCLASS >
GridCoordinatesObject PLMD::gridtools::GridSearch< FCLASS >::myfgrid
private

◆ mygrid

template<class FCLASS >
GridCoordinatesObject PLMD::gridtools::GridSearch< FCLASS >::mygrid
private

◆ myinterp

template<class FCLASS >
std::unique_ptr<Interpolator> PLMD::gridtools::GridSearch< FCLASS >::myinterp
private

◆ using_fgrid

template<class FCLASS >
bool PLMD::gridtools::GridSearch< FCLASS >::using_fgrid
private

◆ value

template<class FCLASS >
std::unique_ptr<Value> PLMD::gridtools::GridSearch< FCLASS >::value
private

The documentation for this class was generated from the following file: