Bridge++  Ver. 2.0.3
field_F_imp_SU_N-inc.h
Go to the documentation of this file.
1 
14 // This implementation only applies to SU(Nc) group and Nd=4 case.
15 #define NC m_Nc
16 #define NC2 (2 * m_Nc)
17 #define NDF (2 * m_Nc * m_Nc)
18 #define ND 4
19 #define NCD (4 * m_Nc)
20 #define NCD2 (8 * m_Nc)
21 
22 //====================================================================
23 namespace {
24  void check_Nc()
25  {
27  "Field_F: implementation for general SU(N).\n");
28  }
29 
30 
31  double mult_Gn_r(const double *g, const double *w, int Nc)
32  {
33  double a = 0.0;
34 
35  for (int i = 0; i < Nc; ++i) {
36  a += g[2 * i] * w[2 * i] - g[2 * i + 1] * w[2 * i + 1];
37  }
38  return a;
39  }
40 
41 
42  double mult_Gn_i(const double *g, const double *w, int Nc)
43  {
44  double a = 0.0;
45 
46  for (int i = 0; i < Nc; ++i) {
47  a += g[2 * i] * w[2 * i + 1] + g[2 * i + 1] * w[2 * i];
48  }
49  return a;
50  }
51 
52 
53  double mult_Gd_r(const double *g, const double *w, int Nc)
54  {
55  double a = 0.0;
56 
57  for (int i = 0; i < Nc; ++i) {
58  a += g[2 * i * Nc] * w[2 * i] + g[2 * i * Nc + 1] * w[2 * i + 1];
59  }
60  return a;
61  }
62 
63 
64  double mult_Gd_i(const double *g, const double *w, int Nc)
65  {
66  double a = 0.0;
67 
68  for (int i = 0; i < Nc; ++i) {
69  a += g[2 * i * Nc] * w[2 * i + 1] - g[2 * i * Nc + 1] * w[2 * i];
70  }
71  return a;
72  }
73 } // end of nameless namespace
74 //====================================================================
75 //============================================================END=====
Bridge::BridgeIO::paranoiac
void paranoiac(const char *format,...)
Definition: bridgeIO.cpp:238
CommonParameters::Vlevel
static Bridge::VerboseLevel Vlevel()
Definition: commonParameters.h:122
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:512