mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 14:04:32 +00:00 
			
		
		
		
	Namespace
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
    /*************************************************************************************
 | 
					/*************************************************************************************
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Grid physics library, www.github.com/paboyle/Grid 
 | 
					    Grid physics library, www.github.com/paboyle/Grid 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -25,13 +25,12 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
 | 
				
			|||||||
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
					    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    See the full license in the file "LICENSE" in the top level distribution directory
 | 
					    See the full license in the file "LICENSE" in the top level distribution directory
 | 
				
			||||||
    *************************************************************************************/
 | 
					*************************************************************************************/
 | 
				
			||||||
    /*  END LEGAL */
 | 
					/*  END LEGAL */
 | 
				
			||||||
#ifndef  GRID_QCD_WILSON_COMPRESSOR_H
 | 
					#ifndef  GRID_QCD_WILSON_COMPRESSOR_H
 | 
				
			||||||
#define  GRID_QCD_WILSON_COMPRESSOR_H
 | 
					#define  GRID_QCD_WILSON_COMPRESSOR_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Grid {
 | 
					NAMESPACE_BEGIN(Grid);
 | 
				
			||||||
namespace QCD {
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
/////////////////////////////////////////////////////////////////////////////////////////////
 | 
					/////////////////////////////////////////////////////////////////////////////////////////////
 | 
				
			||||||
// optimised versions supporting half precision too
 | 
					// optimised versions supporting half precision too
 | 
				
			||||||
@@ -45,7 +44,7 @@ template<class _HCspinor,class _Hspinor,class _Spinor, class projector>
 | 
				
			|||||||
class WilsonCompressorTemplate< _HCspinor, _Hspinor, _Spinor, projector,
 | 
					class WilsonCompressorTemplate< _HCspinor, _Hspinor, _Spinor, projector,
 | 
				
			||||||
				typename std::enable_if<std::is_same<_HCspinor,_Hspinor>::value>::type >
 | 
									typename std::enable_if<std::is_same<_HCspinor,_Hspinor>::value>::type >
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 public:
 | 
					public:
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  int mu,dag;  
 | 
					  int mu,dag;  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -115,7 +114,7 @@ template<class _HCspinor,class _Hspinor,class _Spinor, class projector>
 | 
				
			|||||||
class WilsonCompressorTemplate< _HCspinor, _Hspinor, _Spinor, projector,
 | 
					class WilsonCompressorTemplate< _HCspinor, _Hspinor, _Spinor, projector,
 | 
				
			||||||
				typename std::enable_if<!std::is_same<_HCspinor,_Hspinor>::value>::type >
 | 
									typename std::enable_if<!std::is_same<_HCspinor,_Hspinor>::value>::type >
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 public:
 | 
					public:
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  int mu,dag;  
 | 
					  int mu,dag;  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -202,7 +201,7 @@ class WilsonCompressorTemplate< _HCspinor, _Hspinor, _Spinor, projector,
 | 
				
			|||||||
    spProj(result,in);							\
 | 
					    spProj(result,in);							\
 | 
				
			||||||
  }									\
 | 
					  }									\
 | 
				
			||||||
  };									\
 | 
					  };									\
 | 
				
			||||||
template<typename HCS,typename HS,typename S> using Compressor = WilsonCompressorTemplate<HCS,HS,S,Projector>;
 | 
					  template<typename HCS,typename HS,typename S> using Compressor = WilsonCompressorTemplate<HCS,HS,S,Projector>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DECLARE_PROJ(WilsonXpProjector,WilsonXpCompressor,spProjXp);
 | 
					DECLARE_PROJ(WilsonXpProjector,WilsonXpCompressor,spProjXp);
 | 
				
			||||||
DECLARE_PROJ(WilsonYpProjector,WilsonYpCompressor,spProjYp);
 | 
					DECLARE_PROJ(WilsonYpProjector,WilsonYpCompressor,spProjYp);
 | 
				
			||||||
@@ -214,7 +213,7 @@ DECLARE_PROJ(WilsonZmProjector,WilsonZmCompressor,spProjZm);
 | 
				
			|||||||
DECLARE_PROJ(WilsonTmProjector,WilsonTmCompressor,spProjTm);
 | 
					DECLARE_PROJ(WilsonTmProjector,WilsonTmCompressor,spProjTm);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class WilsonProjector {
 | 
					class WilsonProjector {
 | 
				
			||||||
 public:
 | 
					public:
 | 
				
			||||||
  template<class hsp,class fsp>
 | 
					  template<class hsp,class fsp>
 | 
				
			||||||
  static void Proj(hsp &result,const fsp &in,int mu,int dag){
 | 
					  static void Proj(hsp &result,const fsp &in,int mu,int dag){
 | 
				
			||||||
    int mudag=dag? mu : (mu+Nd)%(2*Nd);
 | 
					    int mudag=dag? mu : (mu+Nd)%(2*Nd);
 | 
				
			||||||
@@ -384,7 +383,7 @@ public:
 | 
				
			|||||||
    this->halogtime+=usecond();
 | 
					    this->halogtime+=usecond();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 };
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}} // namespace close
 | 
					NAMESPACE_END(Grid);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user