63 double factor = (1.0/(double)N);
64 ret= (arg -
adj(arg))*0.5;
65 ret=ret - (
trace(ret)*factor);
83template<class vtype,int N, typename std::enable_if< GridTypeMapper<vtype>::TensorLevel == 0 >
::type * =
nullptr>
94 double factor = (1.0/(double)N);
98 ret = arg - (
trace(arg)*factor);
100 for(
int c1=0;c1<N/2;c1++)
102 for(
int c2=0;c2<N/2;c2++)
107 for(
int c2=N/2;c2<N;c2++)
114 ret = (ret -
adj(ret))*0.5;
133 for(
int i=0;i<N;i++){
138template<class vtype,int N, typename std::enable_if< GridTypeMapper<vtype>::TensorLevel == 0 >
::type * =
nullptr>
147 for(
int c1=0;c1<N;c1++){
151 for(
int c2=0;c2<N;c2++)
156 for(
int c2=0;c2<N;c2++)
160 for (
int b=c1+1; b<N; ++b){
163 for(
int c=0; c<N; ++c)
166 for(
int c=0; c<N; ++c){
176 for(
int c2=0;c2<N;c2++)
181 for(
int c2=0;c2<N;c2++)
202 for(
int i=0;i<N;i++){
210template<class vtype,int N, typename std::enable_if< GridTypeMapper<vtype>::TensorLevel == 0 >
::type * =
nullptr>
218 for(
int c1=0;c1<N/2;c1++)
221 for (
int b=0; b<c1; b++)
228 for(
int c=0; c<N; c++)
235 for(
int c=0; c<N; c++)
242 for(
int c2=0;c2<N;c2++)
249 for(
int c2=0;c2<N;c2++)
254 for(
int c2=0;c2<N/2;c2++)
259 for(
int c2=N/2;c2<N;c2++)
#define accelerator_inline
accelerator_inline void zeroit(Grid_simd2< S, V > &z)
accelerator_inline Grid_simd2< S, V > trace(const Grid_simd2< S, V > &arg)
accelerator_inline Grid_simd< S, V > sqrt(const Grid_simd< S, V > &r)
Lattice< vobj > conjugate(const Lattice< vobj > &lhs)
Lattice< vobj > adj(const Lattice< vobj > &lhs)
ComplexD innerProduct(const Lattice< vobj > &left, const Lattice< vobj > &right)
#define NAMESPACE_BEGIN(A)
accelerator_inline iScalar< vtype > ProjectOnSpGroup(const iScalar< vtype > &r)
accelerator_inline iScalar< vtype > SpTa(const iScalar< vtype > &r)
accelerator_inline iScalar< vtype > ProjectOnGroup(const iScalar< vtype > &r)
accelerator_inline iScalar< vtype > Ta(const iScalar< vtype > &r)