diff --git a/Grid/lattice/Lattice_comparison.h b/Grid/lattice/Lattice_comparison.h index 6a29be94..b9912639 100644 --- a/Grid/lattice/Lattice_comparison.h +++ b/Grid/lattice/Lattice_comparison.h @@ -42,34 +42,6 @@ NAMESPACE_BEGIN(Grid); typedef iScalar vPredicate ; -/* -template accelerator_inline -vobj predicatedWhere(const iobj &predicate, const vobj &iftrue, const robj &iffalse) -{ - typename std::remove_const::type ret; - - typedef typename vobj::scalar_object scalar_object; - typedef typename vobj::scalar_type scalar_type; - typedef typename vobj::vector_type vector_type; - - const int Nsimd = vobj::vector_type::Nsimd(); - - ExtractBuffer mask(Nsimd); - ExtractBuffer truevals(Nsimd); - ExtractBuffer falsevals(Nsimd); - - extract(iftrue, truevals); - extract(iffalse, falsevals); - extract(TensorRemove(predicate), mask); - - for (int s = 0; s < Nsimd; s++) { - if (mask[s]) falsevals[s] = truevals[s]; - } - - merge(ret, falsevals); - return ret; -} -*/ ////////////////////////////////////////////////////////////////////////// // compare lattice to lattice //////////////////////////////////////////////////////////////////////////