Go to the documentation of this file.
16 #ifdef USE_FACTORY_AUTOREGISTER
18 bool init = ForceSmear_HYP_SF::register_factory();
33 double alpha1, alpha2, alpha3;
34 std::vector<double> phi, phipr;
71 const std::vector<double>& phi,
72 const std::vector<double>& phipr)
98 for (
int i = 0; i < 3; ++i) {
108 double Lx_inv = 1.0 / double(Lx);
109 double c0r = cos(phi[0] * Lx_inv);
110 double c0i = sin(phi[0] * Lx_inv);
111 double c1r = cos(phi[1] * Lx_inv);
112 double c1i = sin(phi[1] * Lx_inv);
113 double c2r = cos(phi[2] * Lx_inv);
114 double c2i = sin(phi[2] * Lx_inv);
120 c0r = cos(phipr[0] * Lx_inv);
121 c0i = sin(phipr[0] * Lx_inv);
122 c1r = cos(phipr[1] * Lx_inv);
123 c1i = sin(phipr[1] * Lx_inv);
124 c2r = cos(phipr[2] * Lx_inv);
125 c2i = sin(phipr[2] * Lx_inv);
175 for (
int mu = 0; mu <
m_Ndim; ++mu) {
215 for (
int mu = 0; mu <
m_Ndim; ++mu) {
219 for (
int nu = 0; nu <
m_Ndim; ++nu) {
220 if (nu == mu)
continue;
224 axpy(C, 0, 1.0, c_tmp, 0);
229 copy(Sigmap_tmp, 0, Sigmap, mu);
234 axpy(Sigma, mu, 1.0, Xi, 0);
237 for (
int mu = 0; mu <
m_Ndim; ++mu) {
238 for (
int nu = 0; nu <
m_Ndim; ++nu) {
239 if (nu == mu)
continue;
266 for (
int mu = 0; mu <
m_Ndim; ++mu) {
267 for (
int nu = 0; nu <
m_Ndim; ++nu) {
268 if (nu == mu)
continue;
273 for (
int rho = 0; rho <
m_Ndim; ++rho) {
274 if ((rho == mu) || (rho == nu))
continue;
279 axpy(C, 0, 1.0, c_tmp, 0);
286 axpy(Sigma, mu, 1.0, Xi, 0);
290 for (
int mu = 0; mu <
m_Ndim; ++mu) {
291 for (
int nu = 0; nu <
m_Ndim; ++nu) {
292 if (nu == mu)
continue;
294 for (
int rho = 0; rho <
m_Ndim; ++rho) {
295 if ((rho == mu) || (rho == nu))
continue;
321 for (
int mu = 0; mu <
m_Ndim; ++mu) {
322 for (
int nu = 0; nu <
m_Ndim; ++nu) {
323 if (nu == mu)
continue;
324 for (
int rho = 0; rho <
m_Ndim; ++rho) {
325 if ((rho == mu) || (rho == nu))
continue;
327 int sig = 6 - mu - nu - rho;
336 axpy(Sigma, mu, 1.0, Xi, 0);
341 for (
int mu = 0; mu <
m_Ndim; ++mu) {
342 for (
int nu = 0; nu <
m_Ndim; ++nu) {
343 if (nu == mu)
continue;
345 for (
int rho = 0; rho <
m_Ndim; ++rho) {
346 if ((rho == mu) || (rho == nu))
continue;
348 int sig = 6 - mu - nu - rho;
355 axpy(Sigma, mu, 1.0, Sigma_tmp, 0);
381 const int mu,
const int nu)
402 axpy(Sigma_mu, 1.0, vt3);
408 axpy(Sigma_mu, 1.0, vt3);
421 axpy(Sigma_mu, 1.0, vt2);
435 for (
int mu = 0; mu <
m_Ndim; ++mu) {
436 for (
int nu = 0; nu <
m_Ndim; ++nu) {
437 if (nu == mu)
continue;
439 for (
int rho = nu + 1; rho <
m_Ndim; ++rho) {
440 if (rho == mu)
continue;
442 int sig = 6 - mu - nu - rho;
458 for (
int mu = 0; mu <
m_Ndim; ++mu) {
459 for (
int nu = 0; nu <
m_Ndim; ++nu) {
460 if (nu == mu)
continue;
465 for (
int rho = 0; rho <
m_Ndim; ++rho) {
466 if ((rho != mu) && (rho != nu)) {
470 axpy(c2, 0, 1.0, u_tmp, 0);
484 const int mu,
const int nu)
505 axpy(c, 0, 1.0, v1, 0);
Mat_SU_N m_wk
SF boundary condition at t=0.
void set_boundary_wkpr(Field_G &u, const Mat_SU_N &wkpr)
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 set_string(const string &key, const string &value)
void force_step1(Field_G &)
double m_alpha3
HYP smearing parameters.
void forward(Field &, const Field &, const int mu)
void set(const int jin, const int site, const int jex, double v)
std::vector< Field_G > m_iTheta2
void set_double(const string &key, const double value)
void set_parameters(const Parameters ¶ms)
std::vector< double > m_phi
SF boundary condition at t=0.
int idx1b(const int mu, int nu, int rho)
void set_boundary_wk(Field_G &u, const Mat_SU_N &wk)
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
void set_double_vector(const string &key, const vector< double > &value)
Mat_SU_N m_wkpr
SF boundary condition at t=Nt.
int idx1(const int mu, const int nu, const int rho)
static const std::string class_name
void copy(Field &y, const Field &x)
copy(y, x): y = x
void set(int c, const double &re, const double &im)
void set_boundary_zero(Field_G &u)
std::vector< Field_G > m_v2
std::vector< Field_G > m_Sigma3
std::vector< double > m_phipr
SF boundary condition at t=Nt.
void force_step3(Field_G &, const Field_G &)
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 set_boundary_spatial_link_zero(Field_G &u)
void force_each(Field_G &, const Field_G &, const Field_G &, const Field_G &, const Field_G &, const int mu, const int nu)
virtual void force_recursive(Field_G &Xi, Field_G &iTheta, const double alpha, const Field_G &Sigmap, const Field_G &C, const Field_G &U)=0
determination of fields for force calculation
static VerboseLevel set_verbose_level(const std::string &str)
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 backward(Field &, const Field &, const int mu)
std::vector< Field_G > m_iTheta3
std::vector< Field_G > m_v1
void mult_Field_Gdd(Field_G &W, const int ex, const Field_G &U1, const int ex1, const Field_G &U2, const int ex2)
std::vector< Field_G > m_Sigma2
void scal(Field &x, const double a)
scal(x, a): x = a * x
int fetch_string(const string &key, string &value) const
int fetch_double(const string &key, double &value) const
std::vector< Field_G > m_iTheta1
void crucial(const char *format,...)
int idx2(const int mu, int nu)
void get_parameters(Parameters ¶ms) const
Bridge::VerboseLevel m_vl
int fetch_double_vector(const string &key, vector< double > &value) const
void force_udiv(Field_G &Sigma, const Field_G &Sigma_p, const Field_G &U)
void general(const char *format,...)
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 force_step2(Field_G &)
static std::string get_verbose_level(const VerboseLevel vl)
std::vector< Field_G > m_U
void staple(Field_G &, const Field_G &, const Field_G &, const int mu, const int nu)
virtual void project(Field_G &v, const double alpha, const Field_G &C, const Field_G &U)=0
projection V = P[alpha, C, U]