mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-18 15:57:05 +01:00
minor stylistic changes
This commit is contained in:
@ -133,19 +133,6 @@ public:
|
||||
|
||||
static inline Field projectForce(Field &P)
|
||||
{
|
||||
/* // this works
|
||||
iScalar<iScalar<iMatrix<Complex, Nc> > > gen;
|
||||
auto Psum = P;
|
||||
Psum = Zero();
|
||||
for (int a = 0; a < Group::AlgebraDimension; a++)
|
||||
{
|
||||
Group::generator(a, gen);
|
||||
auto coeff = 2. * trace(P * gen);
|
||||
Psum += coeff * gen;
|
||||
|
||||
|
||||
return Psum;}*/
|
||||
//this doesnt
|
||||
Field ret(P.Grid());
|
||||
Group::taProj(P, ret);
|
||||
return ret;
|
||||
@ -159,7 +146,7 @@ public:
|
||||
autoView(P_v,P,AcceleratorRead);
|
||||
accelerator_for(ss, P.Grid()->oSites(),1,{
|
||||
for (int mu = 0; mu < Nd; mu++) {
|
||||
U_v[ss](mu) = Exponentiate(P_v[ss](mu), ep, Nexp) * U_v[ss](mu); //
|
||||
U_v[ss](mu) = Exponentiate(P_v[ss](mu), ep, Nexp) * U_v[ss](mu);
|
||||
Group::ProjectOnGaugeGroup(U_v[ss](mu));
|
||||
}
|
||||
});
|
||||
@ -206,9 +193,9 @@ typedef GaugeImplTypes<vComplex, Nc> GimplTypesR;
|
||||
typedef GaugeImplTypes<vComplexF, Nc> GimplTypesF;
|
||||
typedef GaugeImplTypes<vComplexD, Nc> GimplTypesD;
|
||||
|
||||
typedef GaugeImplTypes<vComplex, Nc, 12, Sp<Nc>> SymplGimplTypesR;
|
||||
typedef GaugeImplTypes<vComplexF, Nc, 12, Sp<Nc>> SymplGimplTypesF;
|
||||
typedef GaugeImplTypes<vComplexD, Nc, 12, Sp<Nc>> SymplGimplTypesD;
|
||||
typedef GaugeImplTypes<vComplex, Nc, 12, Sp<Nc> > SymplGimplTypesR;
|
||||
typedef GaugeImplTypes<vComplexF, Nc, 12, Sp<Nc> > SymplGimplTypesF;
|
||||
typedef GaugeImplTypes<vComplexD, Nc, 12, Sp<Nc> > SymplGimplTypesD;
|
||||
|
||||
typedef GaugeImplTypes<vComplex, SU<Nc>::AdjointDimension> GimplAdjointTypesR;
|
||||
typedef GaugeImplTypes<vComplexF, SU<Nc>::AdjointDimension> GimplAdjointTypesF;
|
||||
|
@ -170,7 +170,7 @@ class GaugeGroup {
|
||||
}
|
||||
}
|
||||
|
||||
template <typename LatticeMatrixType>
|
||||
template <typename LatticeMatrixType>
|
||||
static void LieRandomize(GridParallelRNG &pRNG, LatticeMatrixType &out,
|
||||
double scale = 1.0) {
|
||||
GridBase *grid = out.Grid();
|
||||
|
Reference in New Issue
Block a user