25 assert(Nvol == v1.
nvol());
26 assert(Nvol == v2.
nvol());
28 assert(v1.
nex() == 1);
29 assert(v2.
nex() == 1);
34 w1 =
const_cast<Field_F *
>(&v1)->ptr(0);
35 w2 =
const_cast<Field_F *
>(&v2)->ptr(0);
38 for (
int site = 0; site < Nvol; ++site) {
41 for (
int c1 = 0; c1 <
NC; ++c1) {
42 for (
int c2 = 0; c2 <
NC; ++c2) {
43 int ig2 = c2 * 2 + c1 *
NC2 + ig;
46 for (
int s = 0; s <
ND; ++s) {
48 w1[2 * c2 + s *
NC2 + iw] * w2[2 * c1 + s *
NC2 + iw]
49 + w1[2 * c2 + 1 + s *
NC2 + iw] * w2[2 * c1 + 1 + s *
NC2 + iw];
51 w1[2 * c2 + s *
NC2 + iw] * w2[2 * c1 + 1 + s *
NC2 + iw]
52 - w1[2 * c2 + 1 + s *
NC2 + iw] * w2[2 * c1 + s *
NC2 + iw];