Bridge++
Version 1.5.4
|
General HMC update class. More...
#include <hmc_General.h>
Public Member Functions | |
HMC_General (const ActionList &action_list, std::vector< Director * > director, Integrator *integrator, RandomNumbers *rand) | |
constructor with action_list, directors, and random number generator More... | |
HMC_General (const ActionList &action_list, std::vector< Director * > director, Integrator *integrator, unique_ptr< RandomNumbers > &rand) | |
HMC_General (const ActionList &action_list, Integrator *integrator, RandomNumbers *rand) | |
constructor with action_list when no director is necessary More... | |
HMC_General (const ActionList &action_list, Integrator *integrator, unique_ptr< RandomNumbers > &rand) | |
~HMC_General () | |
destructor More... | |
void | set_parameters (const Parameters ¶ms) |
void | set_parameters (const double trajectory_length, const bool Metropolis_test) |
void | set_parameters (const double trajectory_length, const int Metropolis_test) |
void | set_parameter_verboselevel (const Bridge::VerboseLevel vl) |
double | update (Field_G &) |
double | langevin (Field_G &iP, const Field_G &U) |
double | calc_Hamiltonian (const Field_G &iP, const Field_G &U) |
double | calcH_P (const Field_G &iP) |
Static Public Attributes | |
static const std::string | class_name = "HMC_General" |
Private Member Functions | |
HMC_General (const HMC_General &) | |
HMC_General & | operator= (const HMC_General &) |
Private Attributes | |
bool | m_Metropolis_test |
Metropolis test: enabled if true. More... | |
std::vector< Action * > | m_action |
actions More... | |
std::vector< Director * > | m_director |
directors More... | |
Integrator * | m_integrator |
MD integrator. More... | |
RandomNumbers * | m_rand |
random number generator More... | |
Staple_lex * | m_staple |
Langevin_Momentum * | m_Langevin_P |
double | m_trajectory_length |
Bridge::VerboseLevel | m_vl |
General HMC update class.
Definition at line 45 of file hmc_General.h.
HMC_General::HMC_General | ( | const ActionList & | action_list, |
std::vector< Director * > | director, | ||
Integrator * | integrator, | ||
RandomNumbers * | rand | ||
) |
constructor with action_list, directors, and random number generator
Definition at line 20 of file hmc_General.cpp.
HMC_General::HMC_General | ( | const ActionList & | action_list, |
std::vector< Director * > | director, | ||
Integrator * | integrator, | ||
unique_ptr< RandomNumbers > & | rand | ||
) |
Definition at line 46 of file hmc_General.cpp.
HMC_General::HMC_General | ( | const ActionList & | action_list, |
Integrator * | integrator, | ||
RandomNumbers * | rand | ||
) |
constructor with action_list when no director is necessary
Definition at line 73 of file hmc_General.cpp.
HMC_General::HMC_General | ( | const ActionList & | action_list, |
Integrator * | integrator, | ||
unique_ptr< RandomNumbers > & | rand | ||
) |
Definition at line 94 of file hmc_General.cpp.
HMC_General::~HMC_General | ( | ) |
destructor
Definition at line 116 of file hmc_General.cpp.
|
private |
Definition at line 281 of file hmc_General.cpp.
double HMC_General::calcH_P | ( | const Field_G & | iP | ) |
Definition at line 312 of file hmc_General.cpp.
Definition at line 245 of file hmc_General.cpp.
|
private |
|
inline |
Definition at line 97 of file hmc_General.h.
void HMC_General::set_parameters | ( | const Parameters & | params | ) |
Definition at line 124 of file hmc_General.cpp.
void HMC_General::set_parameters | ( | const double | trajectory_length, |
const bool | Metropolis_test | ||
) |
Definition at line 157 of file hmc_General.cpp.
void HMC_General::set_parameters | ( | const double | trajectory_length, |
const int | Metropolis_test | ||
) |
Definition at line 148 of file hmc_General.cpp.
double HMC_General::update | ( | Field_G & | Uorg | ) |
Definition at line 175 of file hmc_General.cpp.
|
static |
Definition at line 48 of file hmc_General.h.
|
private |
actions
Definition at line 53 of file hmc_General.h.
|
private |
directors
Definition at line 54 of file hmc_General.h.
|
private |
MD integrator.
Definition at line 55 of file hmc_General.h.
|
private |
Definition at line 58 of file hmc_General.h.
|
private |
Metropolis test: enabled if true.
Definition at line 52 of file hmc_General.h.
|
private |
random number generator
Definition at line 56 of file hmc_General.h.
|
private |
Definition at line 57 of file hmc_General.h.
|
private |
Definition at line 59 of file hmc_General.h.
|
private |
Definition at line 61 of file hmc_General.h.