diff --git a/lib/lattice/Lattice_unary.h b/lib/lattice/Lattice_unary.h index fcdcc484..91b39007 100644 --- a/lib/lattice/Lattice_unary.h +++ b/lib/lattice/Lattice_unary.h @@ -3,51 +3,6 @@ namespace Grid { - ////////////////////////////////////////////////////////////////////////////////////////////////////// - // avoid copy back routines for mult, mac, sub, add - ////////////////////////////////////////////////////////////////////////////////////////////////////// - template Lattice sqrt(const Lattice &rhs){ - Lattice ret(rhs._grid); - ret.checkerboard = rhs.checkerboard; - conformable(ret,rhs); -PARALLEL_FOR_LOOP - for(int ss=0;ssoSites();ss++){ - ret._odata[ss]=sqrt(rhs._odata[ss]); - } - return ret; - } - template Lattice rsqrt(const Lattice &rhs){ - Lattice ret(rhs._grid); - ret.checkerboard = rhs.checkerboard; - conformable(ret,rhs); -PARALLEL_FOR_LOOP - for(int ss=0;ssoSites();ss++){ - ret._odata[ss]=rsqrt(rhs._odata[ss]); - } - return ret; - } - template Lattice sin(const Lattice &rhs){ - Lattice ret(rhs._grid); - ret.checkerboard = rhs.checkerboard; - conformable(ret,rhs); -PARALLEL_FOR_LOOP - for(int ss=0;ssoSites();ss++){ - ret._odata[ss]=sin(rhs._odata[ss]); - } - return ret; - } - template Lattice cos(const Lattice &rhs){ - Lattice ret(rhs._grid); - ret.checkerboard = rhs.checkerboard; - conformable(ret,rhs); -PARALLEL_FOR_LOOP - for(int ss=0;ssoSites();ss++){ - ret._odata[ss]=cos(rhs._odata[ss]); - } - return ret; - } - - template Lattice pow(const Lattice &rhs,RealD y){ Lattice ret(rhs._grid); ret.checkerboard = rhs.checkerboard;