1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-04 19:25:56 +01:00

Avoid code duplication in ProjectSUn

This commit is contained in:
Alessandro Lupo 2023-06-23 11:03:50 +01:00
parent de30c4e22a
commit 4e6194d92a

View File

@ -426,10 +426,14 @@ LatticeComplexD Determinant(
}
template <int N>
using ProjectSUn = typename GaugeGroup<N,GroupName::SU>::ProjectOnSpecialGroup;
static void ProjectSUn(Lattice<iScalar<iScalar<iMatrix<vComplexD, N> > > > &Umu) {
GaugeGroup<N,GroupName::SU>::ProjectOnSpecialGroup(Umu);
}
template <int N>
using ProjectSpn = typename GaugeGroup<N,GroupName::Sp>::ProjectOnSpecialGroup;
static void ProjectSpn(Lattice<iScalar<iScalar<iMatrix<vComplexD, N> > > > &Umu) {
GaugeGroup<N,GroupName::Sp>::ProjectOnSpecialGroup(Umu);
}
// Explicit specialisation for SU(3).
static void ProjectSU3(