PSCompareByEl.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_PSCompareByEl_h_
#define polybori_groebner_PSCompareByEl_h_
// include basic definitions
#include "groebner_defs.h"
BEGIN_NAMESPACE_PBORIGB
class PSCompareByEl{
public:
bool operator() (const PolynomialSugar& p1, const PolynomialSugar& p2){
return ((p1.getSugar()<p2.getSugar()) ||((p1.getSugar()<=p2.getSugar()) && (p1.eliminationLength()<p2.eliminationLength())));
}
};
END_NAMESPACE_PBORIGB
#endif /* polybori_PSCompareByEl_h_ */
polybori::groebner::PolynomialSugar::getSugar
deg_type getSugar() const
Definition: PolynomialSugar.h:64
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
polybori::groebner::PolynomialSugar::eliminationLength
wlen_type eliminationLength() const
Definition: PolynomialSugar.h:103
BEGIN_NAMESPACE_PBORIGB
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
groebner_defs.h
polybori::groebner::PSCompareByEl
This class defines PSCompareByEl.
Definition: PSCompareByEl.h:28
polybori::groebner::PolynomialSugar
This class defines PolynomialSugar.
Definition: PolynomialSugar.h:28