1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-10 19:36:56 +01:00

Added two spinor functionality required to support the Wilson hopping term.

This commit is contained in:
Peter Boyle
2015-04-25 12:54:06 +01:00
parent 8b4073d84c
commit c5fa18eb20
5 changed files with 1227 additions and 59 deletions

View File

@ -6,7 +6,7 @@ namespace Grid {
// innerProduct Vector x Vector -> Scalar
// innerProduct Matrix x Matrix -> Scalar
///////////////////////////////////////////////////////////////////////////////////////
template<class sobj> inline RealD norm2l(sobj &arg){
template<class sobj> inline RealD norm2l(const sobj &arg){
typedef typename sobj::scalar_type scalar;
decltype(innerProduct(arg,arg)) nrm;
nrm = innerProduct(arg,arg);