From ddd93a0576bb4cdbf6599a7b70f3236790217848 Mon Sep 17 00:00:00 2001 From: Azusa Yamaguchi Date: Sun, 14 Jun 2015 01:01:55 +0100 Subject: [PATCH] Extra lattice unaries --- lib/lattice/Lattice_unary.h | 45 ------------------------------------- 1 file changed, 45 deletions(-) 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;