18 void CvToFerm(
const LatticeColorVectorF&
a, LatticeFermionF&
b,
21 pokeSpin(
b,
a, spin_index);
32 void CvToFerm(
const LatticeColorVectorD&
a, LatticeFermionD&
b,
35 pokeSpin(
b,
a, spin_index);
46 void CvToFerm(
const LatticeColorVectorF&
a, LatticeStaggeredFermionF&
b)
58 void CvToFerm(
const LatticeColorVectorD&
a, LatticeStaggeredFermionD&
b)
70 void FermToCv(
const LatticeStaggeredFermionD&
a, LatticeColorVectorD&
b)
82 void FermToCv(
const LatticeStaggeredFermionF&
a, LatticeColorVectorF&
b)
99 int color_index,
int spin_index)
101 for(
int j = 0;
j < Ns; ++
j)
103 LatticeColorMatrixF bb = peekSpin(
b,
j, spin_index);
104 LatticeColorVectorF aa = peekSpin(
a,
j);
106 for(
int i = 0;
i < Nc; ++
i)
107 pokeColor(bb, peekColor(aa,
i),
i, color_index);
109 pokeSpin(
b, bb,
j, spin_index);
123 int color_index,
int spin_index)
125 for(
int j = 0;
j < Ns; ++
j)
127 LatticeColorMatrixD bb = peekSpin(
b,
j, spin_index);
128 LatticeColorVectorD aa = peekSpin(
a,
j);
130 for(
int i = 0;
i < Nc; ++
i)
131 pokeColor(bb, peekColor(aa,
i),
i, color_index);
133 pokeSpin(
b, bb,
j, spin_index);
137 #ifndef QDP_IS_QDPJIT_NO_NVPTX
148 void FermToProp(
const LatticeFermionF&
a, LatticeColorVectorSpinMatrixF&
b,
151 for(
int j = 0;
j < Ns; ++
j)
152 pokeSpin(
b, peekSpin(
a,
j),
j, spin_index);
166 void FermToProp(
const LatticeFermionD&
a, LatticeColorVectorSpinMatrixD&
b,
169 for(
int j = 0;
j < Ns; ++
j)
170 pokeSpin(
b, peekSpin(
a,
j),
j, spin_index);
182 void FermToProp(
const LatticeStaggeredFermionF&
a, LatticeStaggeredPropagatorF&
b,
185 LatticeColorMatrixF bb = peekSpin(
b, 0, 0);
186 LatticeColorVectorF aa = peekSpin(
a, 0);
188 for(
int i = 0;
i < Nc; ++
i)
189 pokeColor(bb, peekColor(aa,
i),
i, color_index);
191 pokeSpin(
b, bb, 0, 0);
202 void FermToProp(
const LatticeStaggeredFermionD&
a, LatticeStaggeredPropagatorD&
b,
205 LatticeColorMatrixD bb = peekSpin(
b, 0, 0);
206 LatticeColorVectorD aa = peekSpin(
a, 0);
208 for(
int i = 0;
i < Nc; ++
i)
209 pokeColor(bb, peekColor(aa,
i),
i, color_index);
211 pokeSpin(
b, bb, 0, 0);
227 int color_index,
int spin_index)
229 for(
int j = 0;
j < Ns; ++
j)
231 LatticeColorMatrixF bb = peekSpin(
b,
j, spin_index);
232 LatticeColorVectorF aa = peekSpin(
a,
j);
234 for(
int i = 0;
i < Nc; ++
i)
235 pokeColor(aa, peekColor(bb,
i, color_index),
i);
251 int color_index,
int spin_index)
253 for(
int j = 0;
j < Ns; ++
j)
255 LatticeColorMatrixD bb = peekSpin(
b,
j, spin_index);
256 LatticeColorVectorD aa = peekSpin(
a,
j);
258 for(
int i = 0;
i < Nc; ++
i)
259 pokeColor(aa, peekColor(bb,
i, color_index),
i);
275 void PropToFerm(
const LatticeStaggeredPropagatorF&
b, LatticeStaggeredFermionF&
a,
278 LatticeColorMatrixF bb = peekSpin(
b, 0, 0);
279 LatticeColorVectorF aa = peekSpin(
a, 0);
281 for(
int i = 0;
i < Nc; ++
i)
282 pokeColor(aa, peekColor(bb,
i, color_index),
i);
295 void PropToFerm(
const LatticeStaggeredPropagatorD&
b, LatticeStaggeredFermionD&
a,
298 LatticeColorMatrixD bb = peekSpin(
b, 0, 0);
299 LatticeColorVectorD aa = peekSpin(
a, 0);
301 for(
int i = 0;
i < Nc; ++
i)
302 pokeColor(aa, peekColor(bb,
i, color_index),
i);
Primary include file for CHROMA library code.
void CvToFerm(const LatticeColorVectorF &a, LatticeFermionF &b, int spin_index)
Convert (insert) a LatticeColorVector into a LatticeFermion.
void FermToCv(const LatticeStaggeredFermionD &a, LatticeColorVectorD &b)
Convert a LatticeStaggeredFermion into a LatticeColorVector (extract)
void PropToFerm(const LatticePropagatorF &b, LatticeFermionF &a, int color_index, int spin_index)
Extract a LatticeFermion from a LatticePropagator.
void FermToProp(const LatticeFermionF &a, LatticePropagatorF &b, int color_index, int spin_index)
Insert a LatticeFermion into a LatticePropagator.
Asqtad Staggered-Dirac operator.