ShorterEliminationLengthModified.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_ShorterEliminationLengthModified_h_
#define polybori_groebner_ShorterEliminationLengthModified_h_
// include basic definitions
#include "groebner_defs.h"
#include "GroebnerStrategy.h"
BEGIN_NAMESPACE_PBORIGB
class ShorterEliminationLengthModified{
public:
const GroebnerStrategy* strat;
wlen_type el;
deg_type lm_deg;
ShorterEliminationLengthModified(const GroebnerStrategy& strat,wlen_type el, deg_type lm_deg){
this->el=el;
this->strat=&strat;
this->lm_deg=lm_deg;
}
bool operator() (const Exponent& e){
PBORI_ASSERT(e.deg()<=lm_deg);
const PolyEntry* p=&strat->generators[e];
return p->weightedLength<=el+(lm_deg-p->leadDeg)*p->length;
}
};
END_NAMESPACE_PBORIGB
#endif /* polybori_ShorterEliminationLengthModified_h_ */
polybori::BooleExponent
This class is just a wrapper for using variables for storing indices as interim data structure for Bo...
Definition: BooleExponent.h:34
polybori::groebner::ShorterEliminationLengthModified::strat
const GroebnerStrategy * strat
Definition: ShorterEliminationLengthModified.h:31
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
polybori::groebner::deg_type
int deg_type
Definition: groebner_defs.h:42
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
groebner_defs.h
polybori::groebner::GroebnerStrategy
This class defines GroebnerStrategy.
Definition: GroebnerStrategy.h:41
PBORI_ASSERT
#define PBORI_ASSERT(arg)
Definition: pbori_defs.h:118
polybori::groebner::wlen_type
long wlen_type
Definition: groebner_defs.h:39
polybori::groebner::ShorterEliminationLengthModified::ShorterEliminationLengthModified
ShorterEliminationLengthModified(const GroebnerStrategy &strat, wlen_type el, deg_type lm_deg)
Definition: ShorterEliminationLengthModified.h:34
polybori::groebner::ShorterEliminationLengthModified
This class defines ShorterEliminationLengthModified.
Definition: ShorterEliminationLengthModified.h:29
GroebnerStrategy.h
polybori::groebner::ShorterEliminationLengthModified::el
wlen_type el
Definition: ShorterEliminationLengthModified.h:32
polybori::groebner::ShorterEliminationLengthModified::lm_deg
deg_type lm_deg
Definition: ShorterEliminationLengthModified.h:33
polybori::BooleExponent::deg
deg_type deg() const
Degree of the corresponding monomial.
Definition: BooleExponent.h:118