LexOrderGreaterComparer.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_LexOrderGreaterComparer_h_
#define polybori_groebner_LexOrderGreaterComparer_h_
// include basic definitions
#include "groebner_defs.h"
BEGIN_NAMESPACE_PBORIGB
class LexOrderGreaterComparer{
LexOrder o;
public:
bool operator() (const Monomial& m1, const Monomial& m2){
return o.compare(m1,m2)==BoolePolyRing::greater_than;
}
bool operator() (const Exponent& m1, const Exponent& m2){
return o.compare(m1,m2)==BoolePolyRing::greater_than;
}
};
END_NAMESPACE_PBORIGB
#endif /* polybori_LexOrderGreaterComparer_h_ */
polybori::LexOrder::compare
comp_type compare(idx_type, idx_type) const
Comparison of indices corresponding to variables.
Definition: LexOrder.cc:81
polybori::BooleExponent
This class is just a wrapper for using variables for storing indices as interim data structure for Bo...
Definition: BooleExponent.h:34
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
BEGIN_NAMESPACE_PBORIGB
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
polybori::groebner::LexOrderGreaterComparer
This class defines LexOrderGreaterComparer.
Definition: LexOrderGreaterComparer.h:28
groebner_defs.h
polybori::LexOrder
This class defines ordering related functions.
Definition: LexOrder.h:33
polybori::BooleMonomial
This class is just a wrapper for using variables from cudd's decicion diagram.
Definition: BooleMonomial.h:50