20 template<
class LHS,
class RHS,
class OP,
unsigned Dim>
25 apply(LHS& __restrict__ Lhs, RHS& __restrict__ Rhs, OP Op)
30 if ( (n0>0)&&(n1>0)&&(n2>0) )
35 for (
int i2=0; i2<n2; ++i2)
36 for (
int i1=0; i1<n1; ++i1)
37 for (
int i0=0; i0<n0; ++i0)
58 template<
class LHS,
class RHS,
class OP>
62 static inline void apply(LHS& __restrict__ Lhs, RHS& __restrict__ Rhs, OP Op)
65 for (
int i0=0; i0<n0; ++i0) {
73 template<
class LHS,
class RHS,
class OP>
78 apply(LHS& __restrict__ Lhs, RHS& __restrict__ Rhs, OP Op)
82 for (
int i1=0; i1<n1; ++i1)
83 for (
int i0=0; i0<n0; ++i0)
92 template<
class LHS,
class RHS,
class OP>
97 apply(LHS& __restrict__ Lhs, RHS& __restrict__ Rhs, OP Op)
100 int n1 = Lhs.size(1);
101 int n2 = Lhs.size(2);
102 for (
int i2=0; i2<n2; ++i2)
103 for (
int i1=0; i1<n1; ++i1)
104 for (
int i0=0; i0<n0; ++i0)
113 template<
unsigned Dim,
class LHS,
class RHS,
class OP>
bool for_each(const BareFieldIterator< T, D > &p, SameFieldID s, C)
void PETE_apply(const OpPeriodic< T > &, T &a, const T &b)
static void apply(LHS &__restrict__ Lhs, RHS &__restrict__ Rhs, OP Op)
static void apply(LHS &__restrict__ Lhs, RHS &__restrict__ Rhs, OP Op)
static void apply(LHS &__restrict__ Lhs, RHS &__restrict__ Rhs, OP Op)
static void apply(LHS &__restrict__ Lhs, RHS &__restrict__ Rhs, OP Op)