mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 14:04:32 +00:00 
			
		
		
		
	Introduce GaugeGroup
This commit is contained in:
		@@ -33,9 +33,18 @@ directory
 | 
				
			|||||||
#define QCD_UTIL_SUN_H
 | 
					#define QCD_UTIL_SUN_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
NAMESPACE_BEGIN(Grid);
 | 
					NAMESPACE_BEGIN(Grid);
 | 
				
			||||||
 | 
					namespace GroupName {
 | 
				
			||||||
 | 
					class SU {};
 | 
				
			||||||
 | 
					}  // namespace GroupName
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					template <int ncolour, class group_name = GroupName::SU>
 | 
				
			||||||
 | 
					class GaugeGroup;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
template <int ncolour>
 | 
					template <int ncolour>
 | 
				
			||||||
class SU {
 | 
					using SU = GaugeGroup<ncolour, GroupName::SU>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					template <int ncolour, class group_name>
 | 
				
			||||||
 | 
					class GaugeGroup {
 | 
				
			||||||
 public:
 | 
					 public:
 | 
				
			||||||
  static const int Dimension = ncolour;
 | 
					  static const int Dimension = ncolour;
 | 
				
			||||||
  static const int AdjointDimension = ncolour * ncolour - 1;
 | 
					  static const int AdjointDimension = ncolour * ncolour - 1;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user