PolyBoRi
PSCompareByEl.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 //*****************************************************************************
14 //*****************************************************************************
15 
16 #ifndef polybori_groebner_PSCompareByEl_h_
17 #define polybori_groebner_PSCompareByEl_h_
18 
19 // include basic definitions
20 #include "groebner_defs.h"
21 
23 
29 public:
30  bool operator() (const PolynomialSugar& p1, const PolynomialSugar& p2){
31  return ((p1.getSugar()<p2.getSugar()) ||((p1.getSugar()<=p2.getSugar()) && (p1.eliminationLength()<p2.eliminationLength())));
32  }
33 };
34 
36 
37 #endif /* polybori_PSCompareByEl_h_ */
deg_type getSugar() const
Definition: PolynomialSugar.h:64
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
wlen_type eliminationLength() const
Definition: PolynomialSugar.h:103
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
This class defines PSCompareByEl.
Definition: PSCompareByEl.h:28
This class defines PolynomialSugar.
Definition: PolynomialSugar.h:28