From c03423250f465131b8c46c85c75727182ad8f027 Mon Sep 17 00:00:00 2001 From: paboyle Date: Sun, 4 Mar 2018 16:31:35 +0000 Subject: [PATCH] Indexable changes --- lib/qcd/QCD.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/qcd/QCD.h b/lib/qcd/QCD.h index ce2bd07a..8816c5dc 100644 --- a/lib/qcd/QCD.h +++ b/lib/qcd/QCD.h @@ -356,35 +356,35 @@ template auto peekLorentz(const Lattice &rhs,int i) -> decltyp ////////////////////////////////////////////// template void pokeColour(Lattice &lhs, - const Lattice(lhs[0],0))> & rhs, + const Lattice(vobj(),0))> & rhs, int i) { PokeIndex(lhs,rhs,i); } template void pokeColour(Lattice &lhs, - const Lattice(lhs[0],0,0))> & rhs, + const Lattice(vobj(),0,0))> & rhs, int i,int j) { PokeIndex(lhs,rhs,i,j); } template void pokeSpin(Lattice &lhs, - const Lattice(lhs[0],0))> & rhs, + const Lattice(vobj(),0))> & rhs, int i) { PokeIndex(lhs,rhs,i); } template void pokeSpin(Lattice &lhs, - const Lattice(lhs[0],0,0))> & rhs, + const Lattice(vobj(),0,0))> & rhs, int i,int j) { PokeIndex(lhs,rhs,i,j); } template void pokeLorentz(Lattice &lhs, - const Lattice(lhs[0],0))> & rhs, + const Lattice(vobj(),0))> & rhs, int i) { PokeIndex(lhs,rhs,i); @@ -471,12 +471,12 @@ template inline vobj transposeColour(const vobj &lhs){ // Trace lattice and non-lattice ////////////////////////////////////////// template -inline auto traceSpin(const Lattice &lhs) -> Lattice(lhs[0]))> +inline auto traceSpin(const Lattice &lhs) -> Lattice(vobj()))> { return traceIndex(lhs); } template -inline auto traceColour(const Lattice &lhs) -> Lattice(lhs[0]))> +inline auto traceColour(const Lattice &lhs) -> Lattice(vobj()))> { return traceIndex(lhs); }