1 #ifndef PAIR_CONDITIONS_H
2 #define PAIR_CONDITIONS_H
8 template<
class T,
unsigned Dim>
22 template<
class T,
unsigned Dim>
33 for(
unsigned int d = 0;d<
Dim;++d)
35 sqr += (a[d]-b[d])*(a[d]-b[d]);
41 template<
class V,
class Vec>
42 bool operator()(
const V &a,
const V &b,
const Vec &)
const
46 for(
unsigned int d = 0;d<
Dim;++d)
49 sqr += (a[d]-b[d])*(a[d]-b[d]);
66 template<
class T,
unsigned Dim>
76 for(
unsigned int d = 0;d<
Dim;++d)
79 if(diff >
box[d] || diff < -
box[d])
bool operator()(const V &a, const V &b) const
T getRange(unsigned) const
T getRange(unsigned d) const
bool operator()(const V &a, const V &b) const
bool operator()(const V &, const V &) const
T::PETE_Expr_t::PETE_Return_t max(const PETE_Expr< T > &expr, NDIndex< D > &loc)
bool operator()(const V &a, const V &b, const Vec &) const
T getRange(unsigned) const