ChainVariableCriterion.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_ChainVariableCriterion_h_
#define polybori_groebner_ChainVariableCriterion_h_
// include basic definitions
#include "groebner_defs.h"
#include "GroebnerStrategy.h"
BEGIN_NAMESPACE_PBORIGB
class ChainVariableCriterion{
public:
const GroebnerStrategy* strat;
int i;
idx_type v;
ChainVariableCriterion(const GroebnerStrategy& strat, int i, idx_type v){
this->strat=&strat;
this->i=i;
this->v=v;
}
bool operator() (const Exponent& lmExp){
int index=strat->generators.index(lmExp);
//we know such an entry exists
if (index!=i){
//would be still true for i, but how should that happen
if ((strat->pairs.status.hasTRep(i,index)) &&(strat->generators[index].vPairCalculated.count(v)==1))
return true;
}
return false;
}
};
END_NAMESPACE_PBORIGB
#endif /* polybori_ChainVariableCriterion_h_ */
polybori::groebner::ChainVariableCriterion::i
int i
Definition: ChainVariableCriterion.h:33
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::PolyEntryVector::index
size_type index(const KeyType &key) const
Retrieve index associated to key.
Definition: PolyEntryVector.h:99
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
polybori::groebner::ChainVariableCriterion::strat
const GroebnerStrategy * strat
connect via pairs
Definition: ChainVariableCriterion.h:32
polybori::groebner::ChainVariableCriterion::ChainVariableCriterion
ChainVariableCriterion(const GroebnerStrategy &strat, int i, idx_type v)
Definition: ChainVariableCriterion.h:35
BEGIN_NAMESPACE_PBORIGB
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
polybori::groebner::PairManager::status
PairStatusSet status
Definition: PairManager.h:75
polybori::groebner::GroebnerStrategy::generators
ReductionStrategy generators
Definition: GroebnerStrategy.h:204
polybori::groebner::ChainVariableCriterion::v
idx_type v
Definition: ChainVariableCriterion.h:34
groebner_defs.h
polybori::groebner::ChainVariableCriterion
This class defines ChainVariableCriterion.
Definition: ChainVariableCriterion.h:29
polybori::groebner::GroebnerStrategy
This class defines GroebnerStrategy.
Definition: GroebnerStrategy.h:41
polybori::groebner::PairStatusSet::hasTRep
bool hasTRep(int ia, int ja) const
Definition: PairStatusSet.h:33
polybori::groebner::PairManagerFacade::pairs
PairManagerWithStrategy< strategy_type > pairs
For compatibility reasons make this a public member.
Definition: PairManagerFacade.h:95
polybori::groebner::idx_type
polybori::CTypes::idx_type idx_type
Definition: groebner_defs.h:44
GroebnerStrategy.h