Bridge++  Ver. 2.0.2
fopr_Wilson_impl_SU3-inc.h
Go to the documentation of this file.
1 
10 #ifndef FOPR_WILSON_IMPL_INC_INCLUDED
11 #define FOPR_WILSON_IMPL_INC_INCLUDED
12 
13 #define NCOL 3
14 #define NVC 6
15 #define ND 4
16 
17 // the following macro varable us used only in inline functions
18 #define NC 3
19 
20 #define ID1 0
21 #define ID2 6
22 #define ID3 12
23 #define ID4 18
24 
25 namespace {
26  std::string imple_Nc() { return "SU(3)"; }
27 
28  void check_Nc()
29  {
31  " Gauge group implementation: SU(3).\n");
32  }
33 
34 
35  inline double mult_uv_r(const double *g, const double *w, const int Nc)
36  {
37  return g[0] * w[0] - g[1] * w[1]
38  + g[2] * w[2] - g[3] * w[3]
39  + g[4] * w[4] - g[5] * w[5];
40  }
41 
42 
43  inline double mult_uv_i(const double *g, const double *w, const int Nc)
44  {
45  return g[0] * w[1] + g[1] * w[0]
46  + g[2] * w[3] + g[3] * w[2]
47  + g[4] * w[5] + g[5] * w[4];
48  }
49 
50 
51  inline double mult_udagv_r(const double *g, const double *w, const int Nc)
52  {
53  return g[0] * w[0] + g[1] * w[1]
54  + g[6] * w[2] + g[7] * w[3]
55  + g[12] * w[4] + g[13] * w[5];
56  }
57 
58 
59  inline double mult_udagv_i(const double *g, const double *w, const int Nc)
60  {
61  return g[0] * w[1] - g[1] * w[0]
62  + g[6] * w[3] - g[7] * w[2]
63  + g[12] * w[5] - g[13] * w[4];
64  }
65 } // end of nameless namespace
66 
67 #endif
68 //============================================================END=====
CommonParameters::Vlevel
static Bridge::VerboseLevel Vlevel()
Definition: commonParameters.h:122
Bridge::BridgeIO::general
void general(const char *format,...)
Definition: bridgeIO.cpp:200
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512