14 const multi1d<int>& sink_mom,
20 if (j_decay < 0 || j_decay >=
Nd)
22 QDPIO::cerr << __func__ <<
": j_decay out of bounds" << std::endl;
28 QDPIO::cerr << __func__ <<
": t_srce not of size = " <<
Nd << std::endl;
32 if (sink_mom.size() !=
Nd-1)
34 QDPIO::cerr << __func__ <<
": mom not of size = " <<
Nd-1 << std::endl;
41 LatticeReal p_dot_x =
zero;
42 bool nonzeroP =
false;
50 p_dot_x += (Layout::latticeCoordinate(
mu) -
t_srce[
mu]) * sink_mom[
j]
51 *
twopi / Real(Layout::lattSize()[
mu]);
60 phase = cmplx(cos(p_dot_x),sin(p_dot_x));
70 const multi1d<int>& sink_mom)
76 QDPIO::cerr << __func__ <<
": t_srce not of size = " <<
Nd << std::endl;
80 if (sink_mom.size() !=
Nd)
82 QDPIO::cerr << __func__ <<
": mom not of size = " <<
Nd << std::endl;
89 LatticeReal p_dot_x =
zero;
90 bool nonzeroP =
false;
93 if (sink_mom[
mu] != 0)
96 p_dot_x += (Layout::latticeCoordinate(
mu) -
t_srce[
mu]) * sink_mom[
mu]
97 *
twopi / Real(Layout::lattSize()[
mu]);
101 LatticeComplex phase;
104 phase = cmplx(cos(p_dot_x),sin(p_dot_x));
Primary include file for CHROMA library code.
LatticeComplex singlePhase(const multi1d< int > &t_srce, const multi1d< int > &sink_mom, int j_decay)
A single exp(ip.x) phase used in hadron construction.
Asqtad Staggered-Dirac operator.
Compute a single phase factor.