From 7e9203d8e0d13aef28123c3a70a7c62d794a711c Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Thu, 13 Aug 2015 10:50:34 +0100 Subject: [PATCH] Some bug fixes for more complicated types introduced with gparity --- lib/qcd/spin/Dirac.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lib/qcd/spin/Dirac.h b/lib/qcd/spin/Dirac.h index 65d8d6b5..8eb1bcf0 100644 --- a/lib/qcd/spin/Dirac.h +++ b/lib/qcd/spin/Dirac.h @@ -343,14 +343,19 @@ namespace QCD { typename std::enable_if,SpinorIndex>::notvalue,iVector >::type { iVector ret; - ret._internal=G*arg._internal; + for(int i=0;i inline auto operator * ( const Gamma &G,const iMatrix &arg) -> typename std::enable_if,SpinorIndex>::notvalue,iMatrix >::type { iMatrix ret; - ret._internal=G*arg._internal; + for(int i=0;i,SpinorIndex>::notvalue,iVector >::type { iVector ret; - ret._internal=arg._internal*G; + for(int i=0;i inline auto operator * (const iMatrix &arg, const Gamma &G) -> typename std::enable_if,SpinorIndex>::notvalue,iMatrix >::type { iMatrix ret; - ret._internal=arg._internal*G; + for(int i=0;i