16 #ifdef USE_PARAMETERS_FACTORY
30 bool init = Smear::Factory::Register(
"APE", create_object);
46 #ifdef USE_PARAMETERS_FACTORY
61 const string str_vlevel = params.
get_string(
"verbose_level");
93 for (
int mu = 0; mu <
m_Ndim; ++mu) {
94 for (
int nu = 0; nu <
m_Ndim; ++nu) {
106 for (
int mu = 0; mu <
m_Ndim; ++mu) {
112 assert(rho.size() == m_Ndim *
m_Ndim);
116 for (
int mu = 0; mu <
m_Ndim; ++mu) {
117 for (
int nu = 0; nu <
m_Ndim; ++nu) {
129 assert(U.
nvol() == Nvol);
131 assert(Usmear.
nvol() == Nvol);
134 Field_G c_tmp(Nvol, 1), u_tmp(Nvol, 1), u_tmp2(Nvol, 1);
140 for (
int mu = 0; mu <
m_Ndim; ++mu) {
144 for (
int nu = 0; nu <
m_Ndim; ++nu) {
146 double rho =
m_rho[mu + m_Ndim * nu];
147 u_tmp2 = staple.
upper(U, mu, nu);
150 u_tmp2 = staple.
lower(U, mu, nu);
155 double rho0 =
m_rho[mu + m_Ndim * mu];
void Register_string(const string &, const string &)
Field_G upper(const Field_G &, const int mu, const int nu)
constructs upper staple in mu-nu plane (wrapping void version).
void general(const char *format,...)
void addpart_ex(int ex, const Field &w, int exw)
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
static bool Register(const std::string &realm, const creator_callback &cb)
Field_G lower(const Field_G &, const int mu, const int nu)
constructs lower staple in mu-nu plane (wrapping void version).
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
static VerboseLevel set_verbose_level(const std::string &str)