Bridge++  Ver. 2.0.2
fopr_Wilson_impl_SU2-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 NC 2
14 #define NCOL 2
15 #define NVC 4
16 #define ND 4
17 
18 #define ID1 0
19 #define ID2 4
20 #define ID3 8
21 #define ID4 12
22 
23 namespace {
24  std::string imple_Nc() { return "SU(2)"; }
25 
26  void check_Nc()
27  {
29  " Gauge group implementation: SU(2).\n");
30  }
31 
32 
33  inline double mult_uv_r(const double *u, const double *v, const int Nc)
34  {
35  return u[0] * v[0] - u[1] * v[1]
36  + u[2] * v[2] - u[3] * v[3];
37  }
38 
39 
40  inline double mult_uv_i(const double *u, const double *v, const int Nc)
41  {
42  return u[0] * v[1] + u[1] * v[0]
43  + u[2] * v[3] + u[3] * v[2];
44  }
45 
46 
47  inline double mult_udagv_r(const double *u, const double *v, const int Nc)
48  {
49  return u[0] * v[0] + u[1] * v[1]
50  + u[4] * v[2] + u[5] * v[3];
51  }
52 
53 
54  inline double mult_udagv_i(const double *u, const double *v, const int Nc)
55  {
56  return u[0] * v[1] - u[1] * v[0]
57  + u[4] * v[3] - u[5] * v[2];
58  }
59 } // end of nameless namespace
60 
61 #endif
62 //============================================================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