mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-10-30 03:24:33 +00:00 
			
		
		
		
	MdagM operator without norm option
This commit is contained in:
		| @@ -97,8 +97,7 @@ public: | |||||||
|     _Mat.MdagM(in,out,n1,n2); |     _Mat.MdagM(in,out,n1,n2); | ||||||
|   } |   } | ||||||
|   void HermOp(const Field &in, Field &out){ |   void HermOp(const Field &in, Field &out){ | ||||||
|     RealD n1,n2; |     _Mat.MdagM(in,out); | ||||||
|     HermOpAndNorm(in,out,n1,n2); |  | ||||||
|   } |   } | ||||||
| }; | }; | ||||||
|  |  | ||||||
| @@ -172,7 +171,6 @@ public: | |||||||
|   } |   } | ||||||
|   void HermOpAndNorm(const Field &in, Field &out,RealD &n1,RealD &n2){ |   void HermOpAndNorm(const Field &in, Field &out,RealD &n1,RealD &n2){ | ||||||
|     _Mat.M(in,out); |     _Mat.M(in,out); | ||||||
| 	 |  | ||||||
|     ComplexD dot= innerProduct(in,out); n1=real(dot); |     ComplexD dot= innerProduct(in,out); n1=real(dot); | ||||||
|     n2=norm2(out); |     n2=norm2(out); | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user