Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
contract_4spinor.h
Go to the documentation of this file.
1 
14 #ifndef CONTRACT_4SPINOR_INCLUDED
15 #define CONTRACT_4SPINOR_INCLUDED
16 
17 #include "Field/field_F.h"
18 #include "Tools/gammaMatrix.h"
19 
20 #include "bridge_complex.h"
21 
23 
40 void contract_at_t(dcomplex& corr,
43  const GammaMatrix& gm_sink,
44  const Field_F& v1, const Field_F& v2,
45  const int time);
46 
49 void contract_at_t(std::vector<dcomplex>& corr_global,
50  const GammaMatrix& gm_sink,
51  const Field_F& v1, const Field_F& v2);
52 
55 void contract_at_t(dcomplex& corr,
56  const std::vector<int>& momentum_sink,
57  const GammaMatrix& gm_sink,
58  const std::vector<int>& source_position,
59  const Field_F& v1, const Field_F& v2,
60  const int time);
61 void contract_at_t(std::vector<dcomplex>& corr_global,
62  const std::vector<int>& momentum_sink,
63  const GammaMatrix& gm_sink,
64  const std::vector<int>& source_position,
65  const Field_F& v1, const Field_F& v2);
66 
69 void contract_at_t_cos(dcomplex& corr,
70  const std::vector<int>& momentum_sink,
71  const GammaMatrix& gm_sink,
72  const std::vector<int>& source_position,
73  const Field_F& v1, const Field_F& v2,
74  const int time);
75 void contract_at_t_cos(std::vector<dcomplex>& corr_global,
76  const std::vector<int>& momentum_sink,
77  const GammaMatrix& gm_sink,
78  const std::vector<int>& source_position,
79  const Field_F& v1, const Field_F& v2);
80 
82 void contract_at_t(dcomplex& corr,
83  const GammaMatrix& gm_sink, const int i_alpha,
84  const Field_F& v1, const Field_F& v2, const Field_F& v3,
85  const int time);
86 
89 void contract_at_x(dcomplex& corr,
90  const GammaMatrix& gm_sink,
91  const Field_F& v1, const Field_F& v2, int x);
92 void contract_at_x(std::vector<dcomplex>& corr_global,
93  const GammaMatrix& gm_sink,
94  const Field_F& v1, const Field_F& v2);
95 
97 void contract_at_x(dcomplex& corr,
98  const std::vector<int>& momentum_sink,
99  const GammaMatrix& gm_sink,
100  const std::vector<int>& source_position,
101  const Field_F& v1, const Field_F& v2,
102  const int x);
103 void contract_at_x(std::vector<dcomplex>& corr_global,
104  const std::vector<int>& momentum_sink,
105  const GammaMatrix& gm_sink,
106  const std::vector<int>& source_position,
107  const Field_F& v1, const Field_F& v2);
108 
110 void contract_at_x_cos(dcomplex& corr,
111  const std::vector<int>& momentum_sink,
112  const GammaMatrix& gm_sink,
113  const std::vector<int>& source_position,
114  const Field_F& v1, const Field_F& v2,
115  const int x);
116 void contract_at_x_cos(std::vector<dcomplex>& corr_global,
117  const std::vector<int>& momentum_sink,
118  const GammaMatrix& gm_sink,
119  const std::vector<int>& source_position,
120  const Field_F& v1, const Field_F& v2);
121 
123 void contract_at_x(dcomplex& corr,
124  const GammaMatrix& gm_sink, const int i_alpha,
125  const Field_F& v1, const Field_F& v2, const Field_F& v3,
126  const int x);
127 
129 void contract_at_y(dcomplex& corr,
130  const GammaMatrix& gm_sink,
131  const Field_F& v1, const Field_F& v2,
132  const int y);
133 void contract_at_y(std::vector<dcomplex>& corr_global,
134  const GammaMatrix& gm_sink,
135  const Field_F& v1, const Field_F& v2);
136 
138 void contract_at_y(dcomplex& corr,
139  const std::vector<int>& momentum_sink,
140  const GammaMatrix& gm_sink,
141  const std::vector<int>& source_position,
142  const Field_F& v1, const Field_F& v2,
143  const int y);
144 void contract_at_y(std::vector<dcomplex>& corr_global,
145  const std::vector<int>& momentum_sink,
146  const GammaMatrix& gm_sink,
147  const std::vector<int>& source_position,
148  const Field_F& v1, const Field_F& v2);
149 
151 void contract_at_y_cos(dcomplex& corr,
152  const std::vector<int>& momentum_sink,
153  const GammaMatrix& gm_sink,
154  const std::vector<int>& source_position,
155  const Field_F& v1, const Field_F& v2,
156  const int y);
157 void contract_at_y_cos(std::vector<dcomplex>& corr_global,
158  const std::vector<int>& momentum_sink,
159  const GammaMatrix& gm_sink,
160  const std::vector<int>& source_position,
161  const Field_F& v1, const Field_F& v2);
162 
164 void contract_at_z(dcomplex& corr,
165  const GammaMatrix& gm_sink,
166  const Field_F& v1, const Field_F& v2,
167  const int z);
168 void contract_at_z(std::vector<dcomplex>& corr_global,
169  const GammaMatrix& gm_sink,
170  const Field_F& v1, const Field_F& v2);
171 
173 void contract_at_z(dcomplex& corr,
174  const std::vector<int>& momentum_sink,
175  const GammaMatrix& gm_sink,
176  const std::vector<int>& source_position,
177  const Field_F& v1, const Field_F& v2,
178  const int z);
179 void contract_at_z(std::vector<dcomplex>& corr_global,
180  const std::vector<int>& momentum_sink,
181  const GammaMatrix& gm_sink,
182  const std::vector<int>& source_position,
183  const Field_F& v1, const Field_F& v2);
184 
186 void contract_at_z_cos(dcomplex& corr,
187  const std::vector<int>& momentum_sink,
188  const GammaMatrix& gm_sink,
189  const std::vector<int>& source_position,
190  const Field_F& v1, const Field_F& v2,
191  const int z);
192 void contract_at_z_cos(std::vector<dcomplex>& corr_global,
193  const std::vector<int>& momentum_sink,
194  const GammaMatrix& gm_sink,
195  const std::vector<int>& source_position,
196  const Field_F& v1, const Field_F& v2);
197 
199 void global_corr_x(std::vector<dcomplex>& corr_global,
200  std::vector<dcomplex>& corr_local);
201 
203 void global_corr_y(std::vector<dcomplex>& corr_global,
204  std::vector<dcomplex>& corr_local);
205 
207 void global_corr_z(std::vector<dcomplex>& corr_global,
208  std::vector<dcomplex>& corr_local);
209 
211 void global_corr_t(std::vector<dcomplex>& corr_global,
212  std::vector<dcomplex>& corr_local);
213 
214 #endif /* CONTRACT_4SPINOR_INCLUDED */
void global_corr_z(std::vector< dcomplex > &corr_global, std::vector< dcomplex > &corr_local)
transform node-local correlator in z to global.
void contract_at_z_cos(dcomplex &corr, const std::vector< int > &momentum_sink, const GammaMatrix &gm_sink, const std::vector< int > &source_position, const Field_F &v1, const Field_F &v2, const int z)
contraction for meson at a given z with Fourier transformation, where (p_x,p_y,p_t) is given by momen...
void contract_at_t(dcomplex &corr, const GammaMatrix &gm_sink, const Field_F &v1, const Field_F &v2, const int time)
Contraction of hadron for 4-spinor fermion.
void contract_at_x_cos(dcomplex &corr, const std::vector< int > &momentum_sink, const GammaMatrix &gm_sink, const std::vector< int > &source_position, const Field_F &v1, const Field_F &v2, const int x)
contraction for meson at a given x with Fourier transformation, where (p_y,p_z,p_t) is given by momen...
void global_corr_x(std::vector< dcomplex > &corr_global, std::vector< dcomplex > &corr_local)
transform node-local correlator in x to global.
void contract_at_t_cos(dcomplex &corr, const std::vector< int > &momentum_sink, const GammaMatrix &gm_sink, const std::vector< int > &source_position, const Field_F &v1, const Field_F &v2, const int time)
Wilson-type fermion field.
Definition: field_F.h:37
Gamma Matrix class.
Definition: gammaMatrix.h:44
void global_corr_t(std::vector< dcomplex > &corr_global, std::vector< dcomplex > &corr_local)
transform node-local correlator in t to global.
void contract_at_y(dcomplex &corr, const GammaMatrix &gm_sink, const Field_F &v1, const Field_F &v2, const int y)
contraction for meson at a given y.
void contract_at_x(dcomplex &corr, const GammaMatrix &gm_sink, const Field_F &v1, const Field_F &v2, int x)
void contract_at_z(dcomplex &corr, const GammaMatrix &gm_sink, const Field_F &v1, const Field_F &v2, const int z)
contraction for meson at a given z.
void global_corr_y(std::vector< dcomplex > &corr_global, std::vector< dcomplex > &corr_local)
transform node-local correlator in y to global.
void contract_at_y_cos(dcomplex &corr, const std::vector< int > &momentum_sink, const GammaMatrix &gm_sink, const std::vector< int > &source_position, const Field_F &v1, const Field_F &v2, const int y)
contraction for meson at a given y with Fourier transformation, where (p_x,p_z,p_t) is given by momen...