LessEcartThenLessWeightedLengthInStrat.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_LessEcartThenLessWeightedLengthInStrat_h_
#define polybori_groebner_LessEcartThenLessWeightedLengthInStrat_h_
// include basic definitions
#include "groebner_defs.h"
BEGIN_NAMESPACE_PBORIGB
class LessEcartThenLessWeightedLengthInStrat{
public:
const GroebnerStrategy* strat;
LessEcartThenLessWeightedLengthInStrat(const GroebnerStrategy& strat){
this->strat=&strat;
}
bool operator() (const Monomial& a , const Monomial& b){
return compare(strat->generators[a], strat->generators[b]);
}
bool operator() (const Exponent& a , const Exponent& b){
return compare(strat->generators[a], strat->generators[b]);
}
private:
bool compare(const PolyEntry& val1, const PolyEntry& val2) const {
if (val1.ecart() != val2.ecart())
return (val1.ecart() < val2.ecart());
return (val1.weightedLength < val2.weightedLength);
}
};
END_NAMESPACE_PBORIGB
#endif /* polybori_LessEcartThenLessWeightedLengthInStrat_h_ */
polybori::groebner::PolyEntry::ecart
deg_type ecart() const
Definition: PolyEntry.h:54
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::PolyEntry
This class defines PolyEntry.
Definition: PolyEntry.h:32
polybori::groebner::GroebnerStrategy::generators
ReductionStrategy generators
Definition: GroebnerStrategy.h:204
polybori::groebner::PolyEntryBase::weightedLength
wlen_type weightedLength
Definition: PolyEntryBase.h:56
groebner_defs.h
polybori::groebner::GroebnerStrategy
This class defines GroebnerStrategy.
Definition: GroebnerStrategy.h:41
polybori::groebner::LessEcartThenLessWeightedLengthInStrat
This class defines LessEcartThenLessWeightedLengthInStrat.
Definition: LessEcartThenLessWeightedLengthInStrat.h:28
polybori::groebner::LessEcartThenLessWeightedLengthInStrat::LessEcartThenLessWeightedLengthInStrat
LessEcartThenLessWeightedLengthInStrat(const GroebnerStrategy &strat)
Definition: LessEcartThenLessWeightedLengthInStrat.h:31
polybori::groebner::LessEcartThenLessWeightedLengthInStrat::strat
const GroebnerStrategy * strat
Definition: LessEcartThenLessWeightedLengthInStrat.h:30
polybori::BooleMonomial
This class is just a wrapper for using variables from cudd's decicion diagram.
Definition: BooleMonomial.h:50