mirror of
https://github.com/paboyle/Grid.git
synced 2025-07-19 14:17:07 +01:00
expand ProjecOnGaugeGroup, change ProjectOnSp2nAlgebra into SpTa, fixing some of its issues
This commit is contained in:
@@ -267,6 +267,41 @@ static void ProjectOnGaugeGroup(Lattice<iVector<iScalar<iMatrix<vComplexD, N> >,
|
||||
}
|
||||
}
|
||||
|
||||
template <class vtype>
|
||||
static void ProjectOnGaugeGroup(iScalar<vtype> &r, GroupName::Sp) {
|
||||
r = ProjectOnSpGroup(r);
|
||||
}
|
||||
|
||||
template <class vtype, int N>
|
||||
static void ProjectOnGaugeGroup(iVector<vtype,N> &r, GroupName::Sp) {
|
||||
r = ProjectOnSpGroup(r);
|
||||
}
|
||||
|
||||
template <class vtype,int N, typename std::enable_if< GridTypeMapper<vtype>::TensorLevel == 0 >::type * =nullptr>
|
||||
static void ProjectOnGaugeGroup(iMatrix<vtype,N> &arg, GroupName::Sp) {
|
||||
arg = ProjectOnSpGroup(arg);
|
||||
}
|
||||
|
||||
/*
|
||||
template <int N> // non-lattice objects
|
||||
static void ProjectOnGaugeGroup(iScalar<iScalar<iMatrix<vComplexD, N> > > &Umu, GroupName::Sp) {
|
||||
Umu = ProjectOnSpGroup(Umu);
|
||||
}
|
||||
|
||||
template <int N>
|
||||
static void ProjectOnGaugeGroup(iVector<iScalar<iMatrix<vComplexD, N> >, Nd> &U, GroupName::Sp) {
|
||||
// Reunitarise
|
||||
for (int mu = 0; mu < Nd; mu++) {
|
||||
auto Umu = PeekIndex<LorentzIndex>(U, mu);
|
||||
Umu = ProjectOnSpGroup(Umu);
|
||||
}
|
||||
}*/
|
||||
|
||||
template <typename LatticeMatrixType>
|
||||
static void taProj(const LatticeMatrixType &in, LatticeMatrixType &out, GroupName::Sp) {
|
||||
out = SpTa(in);
|
||||
}
|
||||
|
||||
public:
|
||||
template <ONLY_IF_Sp>
|
||||
static void OmegaInvariance(ColourMatrix &in) {
|
||||
|
Reference in New Issue
Block a user