1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-13 20:57:06 +01:00

Vectors now too and right multiple of matrix with gamma

This commit is contained in:
Peter Boyle
2015-04-24 19:08:29 +01:00
parent 2e275e1e65
commit 38598190c3
3 changed files with 156 additions and 21 deletions

View File

@ -23,6 +23,9 @@ int main (int argc, char ** argv)
SpinMatrix rr=zero;
SpinMatrix result;
SpinVector lv=zero;
SpinVector rv=zero;
for(int a=0;a<Ns;a++){
ident()(a,a) = 1.0;
}
@ -56,8 +59,9 @@ int main (int argc, char ** argv)
"-Gamma5 ",
" "
};
// result == ll*Gamma(g[0])*rr;
// result == ll*Gamma(g[0]);
result =ll*Gamma(g[0])*rr;
result =ll*Gamma(g[0]);
rv = Gamma(g[0])*lv;
for(int mu=0;mu<12;mu++){