27 const int Nvol = u.
nvol();
34 assert(v1.
nex() == 1);
35 assert(v2.
nex() == 1);
40 for (
int site = 0; site < Nvol; ++site) {
41 for (
int c1 = 0; c1 < Nc; ++c1) {
42 for (
int c2 = 0; c2 < Nc; ++c2) {
45 for (
int s = 0; s < Nd; ++s) {
46 ut_r += v1.
cmp_r(c2, s, site) * v2.
cmp_r(c1, s, site)
47 + v1.
cmp_i(c2, s, site) * v2.
cmp_i(c1, s, site);
48 ut_i += v1.
cmp_r(c2, s, site) * v2.
cmp_i(c1, s, site)
49 - v1.
cmp_i(c2, s, site) * v2.
cmp_r(c1, s, site);
51 ut.set(c1, c2, ut_r, ut_i);
double cmp_i(const int cc, const int s, const int site, const int e=0) const
Wilson-type fermion field.
void tensorProd_Field_F(Field_G &u, const Field_F &v1, const Field_F &v2)
void set_mat(const int site, const int mn, const Mat_SU_N &U)
double cmp_r(const int cc, const int s, const int site, const int e=0) const