16 #ifdef USE_PARAMETERS_FACTORY
29 bool init = ForceSmear::Factory::Register(
"APE", create_object);
44 #ifdef USE_PARAMETERS_FACTORY
59 const string str_vlevel = params.
get_string(
"verbose_level");
91 for (
int mu = 0; mu <
m_Ndim; ++mu) {
92 for (
int nu = 0; nu <
m_Ndim; ++nu) {
104 for (
int mu = 0; mu <
m_Ndim; ++mu) {
110 assert(rho.size() == m_Ndim *
m_Ndim);
114 for (
int mu = 0; mu <
m_Ndim; ++mu) {
115 for (
int nu = 0; nu <
m_Ndim; ++nu) {
132 for (
int mu = 0; mu <
m_Ndim; ++mu) {
133 for (
int nu = 0; nu <
m_Ndim; ++nu) {
144 int NinG = 2 * Nc * Nc;
146 assert(Sigmap.
nin() == NinG);
153 for (
int mu = 0; mu <
m_Ndim; ++mu) {
154 m_U[mu].setpart_ex(0, U, mu);
158 for (
int mu = 0; mu <
m_Ndim; ++mu) {
161 for (
int nu = 0; nu <
m_Ndim; ++nu) {
162 if (nu == mu)
continue;
163 double rho =
m_rho[mu + m_Ndim * nu];
165 C.addpart_ex(0, c_tmp, 0, rho);
168 sigmap_tmp.setpart_ex(0, Sigmap, mu);
170 double alpha =
m_rho[mu + m_Ndim * mu];
172 alpha, sigmap_tmp, C,
m_U[mu]);
177 for (
int mu = 0; mu <
m_Ndim; ++mu) {
178 for (
int nu = 0; nu <
m_Ndim; ++nu) {
179 if (nu == mu)
continue;
180 double rho =
m_rho[mu + m_Ndim * nu];
208 axpy(Sigma_mu, 1.0, vt3);
213 axpy(Sigma_mu, 1.0, vt3);
223 axpy(Sigma_mu, 1.0, vt2);
Bridge::VerboseLevel m_vl
Parameters_ForceSmear_APE()
void Register_string(const string &, const string &)
void set(const int jin, const int site, const int jex, double v)
void force_each(Field_G &, const Field_G &, const Field_G &, const Field_G &, const Field_G &, int mu, int nu)
void mult_Field_Gdn(Field_G &w, const int ex, const Field_G &u1, const int ex1, const Field_G &u2, const int ex2)
void general(const char *format,...)
std::vector< Field_G > m_iTheta
void addpart_ex(int ex, const Field &w, int exw)
void mult_Field_Gdd(Field_G &w, const int ex, const Field_G &u1, const int ex1, const Field_G &u2, const int ex2)
Base class for force calculation of smeared operators.
void staple(Field_G &, const Field_G &, const Field_G &, int mu, int nu)
virtual void force_recursive(Field_G &Xi, Field_G &iTheta, double alpha, const Field_G &Sigmap, const Field_G &C, const Field_G &U)=0
determination of fields for force calculation
void mult_Field_Gnd(Field_G &w, const int ex, const Field_G &u1, const int ex1, const Field_G &u2, const int ex2)
void mult_Field_Gnn(Field_G &w, const int ex, const Field_G &u1, const int ex1, const Field_G &u2, const int ex2)
void set_parameters(const Parameters ¶ms)
void backward(Field &, const Field &, const int mu)
void multadd_Field_Gnd(Field_G &w, const int ex, const Field_G &u1, const int ex1, const Field_G &u2, const int ex2, const double ff)
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
void crucial(const char *format,...)
void force_udiv(Field_G &Sigma, const Field_G &Sigma_p, const Field_G &U)
base class for projection operator into gauge group.
static bool Register(const std::string &realm, const creator_callback &cb)
std::vector< Field_G > m_U
void Register_double(const string &, const double)
double rho(int mu, int nu)
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
std::vector< double > m_rho
static const std::string class_name
static VerboseLevel set_verbose_level(const std::string &str)
void forward(Field &, const Field &, const int mu)