mirror of
https://github.com/paboyle/Grid.git
synced 2026-12-02 22:43:14 +00:00
Added two spinor functionality required to support the Wilson hopping term.
This commit is contained in:
1 parent
8b4073d84c
commit
c5fa18eb20
5 files changed
+1227
-59
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user