1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Introduce GaugeGroup

This commit is contained in:
Julian Lenz 2022-11-25 17:45:32 +00:00
parent 9273f2937c
commit b8f1f5d2a3

View File

@ -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;