Added support for Ta to Lattice types

This commit is contained in:
neo committed 2015-06-04 18:29:55 +09:00
1 parent 3055d2cf2c
commit 4b114fce3d
3 files changed
+29 -12

No files matched your search

+11
View File
@@ -48,5 +48,16 @@ PARALLEL_FOR_LOOP
}
template<class vobj> inline auto Ta(const Lattice<vobj> &z) -> Lattice<decltype(Ta(z._odata[0]))>
{
Lattice<decltype(Ta(z._odata[0]))> ret(z._grid);
PARALLEL_FOR_LOOP
for(int ss=0;ss<z._grid->oSites();ss++){
ret._odata[ss] = Ta(z._odata[ss]);
}
return ret;
}
}
#endif