BlockOrderHelper.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_BlockOrderHelper_h_
#define polybori_groebner_BlockOrderHelper_h_
// include basic definitions
#include "groebner_defs.h"
#include "ReductionStrategy.h"
#include "nf.h"
BEGIN_NAMESPACE_PBORIGB
class BlockOrderHelper{
public:
static bool irreducible_lead(const Monomial& m, const ReductionStrategy& strat){
return PBORINAME::groebner::irreducible_lead(m,strat);
}
static Polynomial::ordered_iterator begin(const Polynomial & p){
return p.orderedBegin();
}
static Polynomial::ordered_iterator end(const Polynomial & p){
return p.orderedEnd();
}
static Polynomial nf(const ReductionStrategy& strat, const Polynomial& p, const Monomial& m){
return nf3(strat,p,m);
}
typedef Polynomial::ordered_iterator iterator_type;
const static bool isDegreeOrder=false;
const static bool isLexicographicalOrder=false;
static bool knowRestIsIrreducible(const iterator_type& it, const ReductionStrategy & strat){
return false;
}
static Polynomial sum_range(std::vector<Monomial>& vec,iterator_type it, iterator_type end, Polynomial init){
return add_up_generic(vec, init);
}
};
END_NAMESPACE_PBORIGB
#endif /* polybori_BlockOrderHelper_h_ */
polybori::groebner::BlockOrderHelper::iterator_type
Polynomial::ordered_iterator iterator_type
Definition: BlockOrderHelper.h:44
polybori::groebner::BlockOrderHelper::irreducible_lead
static bool irreducible_lead(const Monomial &m, const ReductionStrategy &strat)
Definition: BlockOrderHelper.h:32
polybori::groebner::BlockOrderHelper::nf
static Polynomial nf(const ReductionStrategy &strat, const Polynomial &p, const Monomial &m)
Definition: BlockOrderHelper.h:41
polybori::groebner::add_up_generic
Polynomial add_up_generic(const std::vector< T > &res_vec, int start, int end, Polynomial init)
Definition: add_up.h:205
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
polybori::groebner::BlockOrderHelper::begin
static Polynomial::ordered_iterator begin(const Polynomial &p)
Definition: BlockOrderHelper.h:35
polybori::groebner::irreducible_lead
bool irreducible_lead(Monomial lm, const ReductionStrategy &strat)
Definition: ReductionStrategy.h:107
BEGIN_NAMESPACE_PBORIGB
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
polybori::BoolePolynomial
This class wraps the underlying decicion diagram type and defines the necessary operations.
Definition: BoolePolynomial.h:85
polybori::COrderedIter
Definition: BoolePolynomial.h:63
nf.h
groebner_defs.h
polybori::groebner::BlockOrderHelper::end
static Polynomial::ordered_iterator end(const Polynomial &p)
Definition: BlockOrderHelper.h:38
polybori::BoolePolynomial::orderedEnd
ordered_iterator orderedEnd() const
Finish of ordering respecting iterator.
Definition: BoolePolynomial.cc:499
polybori::groebner::BlockOrderHelper::knowRestIsIrreducible
static bool knowRestIsIrreducible(const iterator_type &it, const ReductionStrategy &strat)
Definition: BlockOrderHelper.h:47
polybori::groebner::BlockOrderHelper
This class defines BlockOrderHelper.
Definition: BlockOrderHelper.h:30
ReductionStrategy.h
polybori::groebner::ReductionStrategy
This class defines ReductionStrategy.
Definition: ReductionStrategy.h:34
polybori::BooleMonomial
This class is just a wrapper for using variables from cudd's decicion diagram.
Definition: BooleMonomial.h:50
polybori::groebner::BlockOrderHelper::sum_range
static Polynomial sum_range(std::vector< Monomial > &vec, iterator_type it, iterator_type end, Polynomial init)
Definition: BlockOrderHelper.h:50
polybori::groebner::nf3
Polynomial nf3(const ReductionStrategy &strat, Polynomial p, Monomial rest_lead)
Definition: nf.cc:64
polybori::BoolePolynomial::orderedBegin
ordered_iterator orderedBegin() const
Start of ordering respecting iterator.
Definition: BoolePolynomial.cc:491