From 2b5de5bba5c178eb072d753866cba42436545082 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Mon, 27 Jan 2020 13:44:30 -0500 Subject: [PATCH] MdagM operator without norm option --- Grid/algorithms/LinearOperator.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Grid/algorithms/LinearOperator.h b/Grid/algorithms/LinearOperator.h index 4ea8ca8b..26f22ad2 100644 --- a/Grid/algorithms/LinearOperator.h +++ b/Grid/algorithms/LinearOperator.h @@ -97,8 +97,7 @@ public: _Mat.MdagM(in,out,n1,n2); } void HermOp(const Field &in, Field &out){ - RealD n1,n2; - HermOpAndNorm(in,out,n1,n2); + _Mat.MdagM(in,out); } }; @@ -172,7 +171,6 @@ public: } void HermOpAndNorm(const Field &in, Field &out,RealD &n1,RealD &n2){ _Mat.M(in,out); - ComplexD dot= innerProduct(in,out); n1=real(dot); n2=norm2(out); }