mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-11 14:40:46 +01:00
Make helper functions private
This commit is contained in:
parent
55c008da21
commit
b8b3ae6ac1
@ -156,6 +156,7 @@ class GaugeGroup {
|
|||||||
#include "Grid/qcd/utils/SUn_impl.h"
|
#include "Grid/qcd/utils/SUn_impl.h"
|
||||||
#include "Grid/qcd/utils/Sp2n_impl.h"
|
#include "Grid/qcd/utils/Sp2n_impl.h"
|
||||||
|
|
||||||
|
public:
|
||||||
template <class cplx>
|
template <class cplx>
|
||||||
static void generator(int lieIndex, iSp2nMatrix<cplx> &ta) {
|
static void generator(int lieIndex, iSp2nMatrix<cplx> &ta) {
|
||||||
return generator(lieIndex, ta, group_name());
|
return generator(lieIndex, ta, group_name());
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
//
|
//
|
||||||
// around it.
|
// around it.
|
||||||
|
|
||||||
|
private:
|
||||||
static int su2subgroups(GroupName::SU) { return (ncolour * (ncolour - 1)) / 2; }
|
static int su2subgroups(GroupName::SU) { return (ncolour * (ncolour - 1)) / 2; }
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
// There are N^2-1 generators for SU(N).
|
// 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;
|
i2 = i1 + 1 + spare;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Pull out a subgroup and project on to real coeffs x pauli basis
|
// Pull out a subgroup and project on to real coeffs x pauli basis
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
private:
|
||||||
static int su2subgroups(GroupName::Sp) { return (nsp * (nsp - 1)) / 2; }
|
static int su2subgroups(GroupName::Sp) { return (nsp * (nsp - 1)) / 2; }
|
||||||
|
|
||||||
// Sp(2N) has N(2N+1) = 2N^2+N generators
|
// Sp(2N) has N(2N+1) = 2N^2+N generators
|
||||||
@ -233,6 +234,7 @@ static void testGenerators(GroupName::Sp) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
template <ONLY_IF_Sp>
|
template <ONLY_IF_Sp>
|
||||||
static void OmegaInvariance(ColourMatrix &in) {
|
static void OmegaInvariance(ColourMatrix &in) {
|
||||||
ColourMatrix Omega;
|
ColourMatrix Omega;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user