Bridge++  Ver. 1.3.x
HMC_Leapfrog Class Reference

#include <hmc_Leapfrog.h>

Public Member Functions

 HMC_Leapfrog (std::vector< Action * > action, RandomNumbers *rand)
 constructor: with array of actions More...
 
 HMC_Leapfrog (std::vector< Action * > action, unique_ptr< RandomNumbers > &rand)
 
 HMC_Leapfrog (std::vector< Action * > action, std::vector< Director * > director, RandomNumbers *rand)
 constructor: with array of actions and directors More...
 
 HMC_Leapfrog (std::vector< Action * > action, std::vector< Director * > director, unique_ptr< RandomNumbers > &rand)
 
 HMC_Leapfrog (const ActionList &action_list, RandomNumbers *rand)
 constructor: with action_list More...
 
 HMC_Leapfrog (const ActionList &action_list, unique_ptr< RandomNumbers > &rand)
 
 HMC_Leapfrog (const ActionList &action_list, std::vector< Director * > director, RandomNumbers *rand)
 constructor: with action_list and array of directors More...
 
 HMC_Leapfrog (const ActionList &action_list, std::vector< Director * > director, unique_ptr< RandomNumbers > &rand)
 
 ~HMC_Leapfrog ()
 destructor More...
 
void set_parameters (const Parameters &params)
 
void set_parameters (double Estep, int Nmdc, int Nprec, int Metropolis_test)
 
void set_parameter_verboselevel (const Bridge::VerboseLevel vl)
 
double update (Field_G &)
 
double langevin (Field_G &iP, Field_G &U)
 
double calc_Hamiltonian (Field_G &iP, Field_G &U)
 
double calcH_P (Field_G &iP)
 
void integrate (Field_G &iP, Field_G &U)
 
void update_U (double estep, Field_G &iP, Field_G &U)
 
void update_P (double estep, Field_G &iP, Field_G &U)
 

Static Public Attributes

static const std::string class_name = "HMC_Leapfrog"
 

Private Member Functions

 HMC_Leapfrog (const HMC_Leapfrog &)
 
HMC_Leapfrogoperator= (const HMC_Leapfrog &)
 

Private Attributes

int m_Nmdc
 
int m_Nprec
 
int m_Metropolis_test
 
double m_Estep
 
Langevin_Momentumm_Langevin_P
 
Staplesm_staple
 
std::vector< Action * > m_action
 
std::vector< Director * > m_director
 
RandomNumbersm_rand
 
Bridge::VerboseLevel m_vl
 

Detailed Description

Definition at line 57 of file hmc_Leapfrog.h.

Constructor & Destructor Documentation

HMC_Leapfrog::HMC_Leapfrog ( std::vector< Action * >  action,
RandomNumbers rand 
)

constructor: with array of actions

Definition at line 43 of file hmc_Leapfrog.cpp.

HMC_Leapfrog::HMC_Leapfrog ( std::vector< Action * >  action,
unique_ptr< RandomNumbers > &  rand 
)

Definition at line 62 of file hmc_Leapfrog.cpp.

HMC_Leapfrog::HMC_Leapfrog ( std::vector< Action * >  action,
std::vector< Director * >  director,
RandomNumbers rand 
)

constructor: with array of actions and directors

Definition at line 82 of file hmc_Leapfrog.cpp.

HMC_Leapfrog::HMC_Leapfrog ( std::vector< Action * >  action,
std::vector< Director * >  director,
unique_ptr< RandomNumbers > &  rand 
)

Definition at line 106 of file hmc_Leapfrog.cpp.

HMC_Leapfrog::HMC_Leapfrog ( const ActionList action_list,
RandomNumbers rand 
)

constructor: with action_list

Definition at line 131 of file hmc_Leapfrog.cpp.

HMC_Leapfrog::HMC_Leapfrog ( const ActionList action_list,
unique_ptr< RandomNumbers > &  rand 
)

Definition at line 152 of file hmc_Leapfrog.cpp.

HMC_Leapfrog::HMC_Leapfrog ( const ActionList action_list,
std::vector< Director * >  director,
RandomNumbers rand 
)

constructor: with action_list and array of directors

Definition at line 174 of file hmc_Leapfrog.cpp.

HMC_Leapfrog::HMC_Leapfrog ( const ActionList action_list,
std::vector< Director * >  director,
unique_ptr< RandomNumbers > &  rand 
)

Definition at line 200 of file hmc_Leapfrog.cpp.

HMC_Leapfrog::~HMC_Leapfrog ( )

destructor

Definition at line 227 of file hmc_Leapfrog.cpp.

HMC_Leapfrog::HMC_Leapfrog ( const HMC_Leapfrog )
private

Member Function Documentation

double HMC_Leapfrog::calc_Hamiltonian ( Field_G iP,
Field_G U 
)

Definition at line 390 of file hmc_Leapfrog.cpp.

double HMC_Leapfrog::calcH_P ( Field_G iP)

Definition at line 426 of file hmc_Leapfrog.cpp.

void HMC_Leapfrog::integrate ( Field_G iP,
Field_G U 
)

Definition at line 437 of file hmc_Leapfrog.cpp.

double HMC_Leapfrog::langevin ( Field_G iP,
Field_G U 
)

Definition at line 355 of file hmc_Leapfrog.cpp.

HMC_Leapfrog& HMC_Leapfrog::operator= ( const HMC_Leapfrog )
private
void HMC_Leapfrog::set_parameter_verboselevel ( const Bridge::VerboseLevel  vl)
inline

Definition at line 122 of file hmc_Leapfrog.h.

void HMC_Leapfrog::set_parameters ( const Parameters params)

Definition at line 235 of file hmc_Leapfrog.cpp.

void HMC_Leapfrog::set_parameters ( double  Estep,
int  Nmdc,
int  Nprec,
int  Metropolis_test 
)

Definition at line 262 of file hmc_Leapfrog.cpp.

double HMC_Leapfrog::update ( Field_G Uorg)

Definition at line 284 of file hmc_Leapfrog.cpp.

void HMC_Leapfrog::update_P ( double  estep,
Field_G iP,
Field_G U 
)

Definition at line 467 of file hmc_Leapfrog.cpp.

void HMC_Leapfrog::update_U ( double  estep,
Field_G iP,
Field_G U 
)

Definition at line 491 of file hmc_Leapfrog.cpp.

Member Data Documentation

const std::string HMC_Leapfrog::class_name = "HMC_Leapfrog"
static

Definition at line 60 of file hmc_Leapfrog.h.

std::vector<Action *> HMC_Leapfrog::m_action
private

Definition at line 71 of file hmc_Leapfrog.h.

std::vector<Director *> HMC_Leapfrog::m_director
private

Definition at line 72 of file hmc_Leapfrog.h.

double HMC_Leapfrog::m_Estep
private

Definition at line 66 of file hmc_Leapfrog.h.

Langevin_Momentum* HMC_Leapfrog::m_Langevin_P
private

Definition at line 68 of file hmc_Leapfrog.h.

int HMC_Leapfrog::m_Metropolis_test
private

Definition at line 65 of file hmc_Leapfrog.h.

int HMC_Leapfrog::m_Nmdc
private

Definition at line 63 of file hmc_Leapfrog.h.

int HMC_Leapfrog::m_Nprec
private

Definition at line 64 of file hmc_Leapfrog.h.

RandomNumbers* HMC_Leapfrog::m_rand
private

Definition at line 73 of file hmc_Leapfrog.h.

Staples* HMC_Leapfrog::m_staple
private

Definition at line 69 of file hmc_Leapfrog.h.

Bridge::VerboseLevel HMC_Leapfrog::m_vl
private

Definition at line 74 of file hmc_Leapfrog.h.


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