16 #ifdef USE_PARAMETERS_FACTORY
29 bool init = Smear::Factory::Register(
"APE", create_object);
45 #ifdef USE_PARAMETERS_FACTORY
60 const string str_vlevel = params.
get_string(
"verbose_level");
92 for (
int mu = 0; mu <
m_Ndim; ++mu) {
93 for (
int nu = 0; nu <
m_Ndim; ++nu) {
105 for (
int mu = 0; mu <
m_Ndim; ++mu) {
111 assert(rho.size() == m_Ndim *
m_Ndim);
115 for (
int mu = 0; mu <
m_Ndim; ++mu) {
116 for (
int nu = 0; nu <
m_Ndim; ++nu) {
128 assert(U.
nvol() == Nvol);
130 assert(Usmear.
nvol() == Nvol);
133 Field_G c_tmp(Nvol, 1), u_tmp(Nvol, 1), u_tmp2(Nvol, 1);
139 for (
int mu = 0; mu <
m_Ndim; ++mu) {
141 u_tmp.setpart_ex(0, U, mu);
143 for (
int nu = 0; nu <
m_Ndim; ++nu) {
145 double rho =
m_rho[mu + m_Ndim * nu];
146 staple.
upper(u_tmp2, U, mu, nu);
147 c_tmp.addpart_ex(0, u_tmp2, 0, rho);
149 staple.
lower(u_tmp2, U, mu, nu);
150 c_tmp.addpart_ex(0, u_tmp2, 0, rho);
154 double rho0 =
m_rho[mu + m_Ndim * mu];
void Register_string(const string &, const string &)
void set(const int jin, const int site, const int jex, double v)
void general(const char *format,...)
void set_parameters(const Parameters ¶ms)
Setting parameters with Parameters object.
void smear(Field_G &Usmear, const Field_G &U)
Smearing of a given gauge field.
Projection * m_proj
projector to group element.
APE type smearing of link variables.
static const std::string class_name
void crucial(const char *format,...)
base class for projection operator into gauge group.
std::valarray< double > m_rho
smearing parameter
void lower(Field_G &, const Field_G &, const int mu, const int nu)
constructs lower staple in mu-nu plane.
static bool Register(const std::string &realm, const creator_callback &cb)
int m_Ndim
spacetime dimension
void Register_double(const string &, const double)
base class for smearing of link variables.
virtual void project(Field_G &v, double alpha, const Field_G &C, const Field_G &U)=0
projection V = P[alpha, C, U]
void setpart_ex(int ex, const Field &w, int exw)
int fetch_double(const string &key, double &val) const
string get_string(const string &key) const
void staple(Field_G &, const Field_G &, const Field_G &, int mu, int nu)
Staple construction.
Bridge::VerboseLevel m_vl
void upper(Field_G &, const Field_G &, const int mu, const int nu)
constructs upper staple in mu-nu plane.
static VerboseLevel set_verbose_level(const std::string &str)