43 const typename Impl::Field &f) {
51 const typename Impl::Field &f) {
59 static void phider(
typename Impl::Field &fsq,
60 const typename Impl::Field &f) {
61 fsq =
Cshift(f, 0, -1) * f;
62 for (
int mu = 1; mu <
Nd; mu++) fsq +=
Cshift(f, mu, -1) * f;
70 typename Impl::Field tmp(f.Grid());
71 tmp =
Cshift(f, 0, -1) * f;
72 for (
int mu = 1; mu <
Nd; mu++) {
73 tmp +=
Cshift(f, mu, -1) * f;
79 typename Impl::Field tmp(f.Grid());
85 typename Impl::Field tmp(f.Grid());
auto Cshift(const Expression &expr, int dim, int shift) -> decltype(closure(expr))
accelerator_inline Grid_simd2< S, V > trace(const Grid_simd2< S, V > &arg)
vobj::scalar_object sum(const vobj *arg, Integer osites)
#define NAMESPACE_BEGIN(A)
static void phider(typename Impl::Field &fsq, const typename Impl::Field &f)
static void phifourth(typename Impl::Field &fsq, const typename Impl::Field &f)
static void phisquared(typename Impl::Field &fsq, const typename Impl::Field &f)
static RealD sumphisquared(const typename Impl::Field &f)
static RealD sumphider(const typename Impl::Field &f)
static RealD sumphifourth(const typename Impl::Field &f)