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

Make helper functions private

This commit is contained in:
Julian Lenz 2022-11-30 13:28:09 +00:00
parent 55c008da21
commit b8b3ae6ac1
3 changed files with 5 additions and 0 deletions

View File

@ -156,6 +156,7 @@ class GaugeGroup {
#include "Grid/qcd/utils/SUn_impl.h"
#include "Grid/qcd/utils/Sp2n_impl.h"
public:
template <class cplx>
static void generator(int lieIndex, iSp2nMatrix<cplx> &ta) {
return generator(lieIndex, ta, group_name());

View File

@ -6,6 +6,7 @@
//
// around it.
private:
static int su2subgroups(GroupName::SU) { return (ncolour * (ncolour - 1)) / 2; }
////////////////////////////////////////////////////////////////////////
// There are N^2-1 generators for SU(N).
@ -122,6 +123,7 @@ static void su2SubGroupIndex(int &i1, int &i2, int su2_index, GroupName::SU) {
i2 = i1 + 1 + spare;
}
public:
//////////////////////////////////////////////////////////////////////////////////////////
// Pull out a subgroup and project on to real coeffs x pauli basis
//////////////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,5 @@
private:
static int su2subgroups(GroupName::Sp) { return (nsp * (nsp - 1)) / 2; }
// Sp(2N) has N(2N+1) = 2N^2+N generators
@ -233,6 +234,7 @@ static void testGenerators(GroupName::Sp) {
}
}
public:
template <ONLY_IF_Sp>
static void OmegaInvariance(ColourMatrix &in) {
ColourMatrix Omega;