10 #ifndef FOPR_WILSON_IMPL_INC_INCLUDED
11 #define FOPR_WILSON_IMPL_INC_INCLUDED
27 std::string imple_Nc() {
return "SU(N)"; }
32 " Gauge group implementation: general SU(N).\n");
36 inline double mult_uv_r(
const double *g,
const double *w,
const int Nc)
39 for (
int i = 0; i < Nc; ++i) {
40 a += g[2 * i] * w[2 * i] - g[2 * i + 1] * w[2 * i + 1];
46 inline double mult_uv_i(
const double *g,
const double *w,
const int Nc)
49 for (
int i = 0; i < Nc; ++i) {
50 a += g[2 * i] * w[2 * i + 1] + g[2 * i + 1] * w[2 * i];
56 inline double mult_udagv_r(
const double *g,
const double *w,
const int Nc)
59 for (
int i = 0; i < Nc; ++i) {
60 a += g[2 * i * Nc] * w[2 * i] + g[2 * i * Nc + 1] * w[2 * i + 1];
66 inline double mult_udagv_i(
const double *g,
const double *w,
const int Nc)
69 for (
int i = 0; i < Nc; ++i) {
70 a += g[2 * i * Nc] * w[2 * i + 1] - g[2 * i * Nc + 1] * w[2 * i];