1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-14 22:07:05 +01:00

Gamma adj fix: now in Grid namespace to avoid collisions

This commit is contained in:
2017-01-30 10:53:04 -08:00
parent a0cfbb6e88
commit 1140573027
2 changed files with 8 additions and 15 deletions

View File

@ -33,7 +33,6 @@ See the full license in the file "LICENSE" in the top level distribution directo
#define GRID_QCD_DIRAC_H
// code generated by the Mathematica notebook gamma-gen/gamma-gen.nb
#include <array>
namespace Grid {
@ -88,11 +87,6 @@ inline Gamma operator*(const Gamma &g1, const Gamma &g2)
return Gamma(Gamma::mul[g1.g][g2.g]);
}
inline Gamma adj(const Gamma &g)
{
return Gamma(Gamma::adj[g.g]);
}
template<class vtype>
inline void multMinusGamma5(iVector<vtype, Ns> &ret, const iVector<vtype, Ns> &rhs)
{
@ -1446,6 +1440,13 @@ inline auto operator*(const iMatrix<vtype, Ns> &arg, const Gamma &G)
return ret;
}
}}
}
inline QCD::Gamma adj(const QCD::Gamma &g)
{
return QCD::Gamma(QCD::Gamma::adj[g.g]);
}
}
#endif