34 inline std::size_t operator()(
const int* conf)
const 38 for(
int i = 0; i < dim; ++i )
39 seed ^= conf[i] + 0x9e3779b9 + (seed << 6) + (seed >> 2);
52 inline bool operator()(
const int* conf1,
const int* conf2)
const 61 return memcmp(conf1, conf2, size) == 0;
70 inline bool operator()(
void* conf1,
void* conf2)
const 72 return *
reinterpret_cast<double*
>(conf1) < *reinterpret_cast<double*>(conf2);
81 const double* logProbs;
86 inline bool operator()(
const Conf conf1,
const Conf conf2)
88 return unnormalized_logProb(conf1,logProbs,dim) < unnormalized_logProb(conf2,logProbs,dim);
95 const double* logProbs;
100 inline bool operator()(
const Conf conf1,
const Conf conf2)
102 return unnormalized_logProb(conf1,logProbs,dim) > unnormalized_logProb(conf2,logProbs,dim);
110 inline bool operator()(
const T a,
const T b)
const {
return a > b; };
117 inline TableOrder(
const T* _tbl) : tbl(_tbl) {};
118 inline bool operator()(
unsigned int i,
unsigned int j) {
return tbl[i] < tbl[j]; };
123 #include "marginalTrek++.h" 135 bool operator()(
int m1,
int m2);
Precalculated Marginal class.