mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-10 06:00:45 +01:00
cleaning up requested by Ed
This commit is contained in:
parent
881b08a465
commit
7b3b7093fa
@ -303,7 +303,6 @@ class GaugeGroup {
|
|||||||
template <typename LatticeMatrixType>
|
template <typename LatticeMatrixType>
|
||||||
static void taProj(const LatticeMatrixType &in, LatticeMatrixType &out) {
|
static void taProj(const LatticeMatrixType &in, LatticeMatrixType &out) {
|
||||||
taProj(in, out, group_name());
|
taProj(in, out, group_name());
|
||||||
//out = Ta(in);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename LatticeMatrixType>
|
template <typename LatticeMatrixType>
|
||||||
@ -349,18 +348,6 @@ class GaugeGroup {
|
|||||||
arg = ProjectOnGaugeGroup(arg, group_name());
|
arg = ProjectOnGaugeGroup(arg, group_name());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
template <int N> // reunitarise, resimplectify...
|
|
||||||
static void ProjectOnGaugeGroup(iVector<iScalar<iMatrix<vComplexD, N> >, Nd> &U) {
|
|
||||||
ProjectOnGaugeGroup(U, group_name());
|
|
||||||
}
|
|
||||||
|
|
||||||
template <int N> // reunitarise, resimplectify...
|
|
||||||
static void ProjectOnGaugeGroup(iScalar<iScalar<iMatrix<vComplexD, N> > > &Umu) {
|
|
||||||
ProjectOnGaugeGroup(Umu, group_name());
|
|
||||||
}*/
|
|
||||||
|
|
||||||
template <int N> // reunitarise, resimplectify... previously ProjectSUn
|
template <int N> // reunitarise, resimplectify... previously ProjectSUn
|
||||||
static void ProjectGn(Lattice<iScalar<iScalar<iMatrix<vComplexD, N> > > > &Umu) {
|
static void ProjectGn(Lattice<iScalar<iScalar<iMatrix<vComplexD, N> > > > &Umu) {
|
||||||
ProjectOnGaugeGroup(Umu);
|
ProjectOnGaugeGroup(Umu);
|
||||||
@ -413,7 +400,6 @@ LatticeComplexD Determinant(
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template <int N>
|
template <int N>
|
||||||
static void ProjectSUn(
|
static void ProjectSUn(
|
||||||
Lattice<iScalar<iScalar<iMatrix<vComplexD, N> > > > &Umu) {
|
Lattice<iScalar<iScalar<iMatrix<vComplexD, N> > > > &Umu) {
|
||||||
|
@ -538,24 +538,6 @@ static void ProjectOnGaugeGroup(iMatrix<vtype,N> &arg, GroupName::SU) {
|
|||||||
arg = ProjectOnGroup(arg);
|
arg = ProjectOnGroup(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
template <int N> // non-lattice objects
|
|
||||||
static void ProjectOnGaugeGroup(iScalar<iScalar<iMatrix<vComplexD, N> > > &Umu, GroupName::SU) {
|
|
||||||
Umu = ProjectOnGroup(Umu);
|
|
||||||
}
|
|
||||||
|
|
||||||
template <int N>
|
|
||||||
static void ProjectOnGaugeGroup(iVector<iScalar<iMatrix<vComplexD, N> >, Nd> &U, GroupName::SU) {
|
|
||||||
// Reunitarise
|
|
||||||
for (int mu = 0; mu < Nd; mu++) {
|
|
||||||
auto Umu = PeekIndex<LorentzIndex>(U, mu);
|
|
||||||
Umu = ProjectOnGroup(Umu);
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
template <typename LatticeMatrixType>
|
template <typename LatticeMatrixType>
|
||||||
static void taProj(const LatticeMatrixType &in, LatticeMatrixType &out, GroupName::SU) {
|
static void taProj(const LatticeMatrixType &in, LatticeMatrixType &out, GroupName::SU) {
|
||||||
out = Ta(in);
|
out = Ta(in);
|
||||||
|
@ -282,21 +282,6 @@ static void ProjectOnGaugeGroup(iMatrix<vtype,N> &arg, GroupName::Sp) {
|
|||||||
arg = ProjectOnSpGroup(arg);
|
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>
|
template <typename LatticeMatrixType>
|
||||||
static void taProj(const LatticeMatrixType &in, LatticeMatrixType &out, GroupName::Sp) {
|
static void taProj(const LatticeMatrixType &in, LatticeMatrixType &out, GroupName::Sp) {
|
||||||
out = SpTa(in);
|
out = SpTa(in);
|
||||||
|
@ -117,14 +117,11 @@ template<class vtype,int N, typename std::enable_if< GridTypeMapper<vtype>::Tens
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////
|
///////////////////////////////////////////////
|
||||||
// ProjectOnGroup function for scalar, vector, matrix
|
// ProjectOnGroup function for scalar, vector, matrix
|
||||||
// Projects on orthogonal, unitary group
|
// Projects on orthogonal, unitary group
|
||||||
///////////////////////////////////////////////
|
///////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
template<class vtype> accelerator_inline iScalar<vtype> ProjectOnGroup(const iScalar<vtype>&r)
|
template<class vtype> accelerator_inline iScalar<vtype> ProjectOnGroup(const iScalar<vtype>&r)
|
||||||
{
|
{
|
||||||
iScalar<vtype> ret;
|
iScalar<vtype> ret;
|
||||||
|
@ -46,6 +46,5 @@ int main(int argc, char** argv) {
|
|||||||
Sp8::printGenerators();
|
Sp8::printGenerators();
|
||||||
Sp8::testGenerators();
|
Sp8::testGenerators();
|
||||||
|
|
||||||
|
|
||||||
Grid_finalize();
|
Grid_finalize();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user