TimesConstantImplication.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_TimesConstantImplication_h_
#define polybori_groebner_TimesConstantImplication_h_
// include basic definitions
#include "groebner_defs.h"
BEGIN_NAMESPACE_PBORIGB
class TimesConstantImplication {
public:
template <class PairType>
Polynomial operator()(const Polynomial& lhs, const PairType& rhs) const {
return lhs * (lhs.ring().variable(rhs.first) + bool(rhs.second) );
}
};
END_NAMESPACE_PBORIGB
#endif /* polybori_groebner_TimesConstantImplication_h_ */
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
polybori::BoolePolyRing::variable
var_type variable(checked_idx_type nvar) const
Access nvar-th ring variable as diagram.
Definition: BoolePolyRing.cc:99
polybori::BoolePolynomial::ring
const ring_type & ring() const
Access ring, where this belongs to.
Definition: BoolePolynomial.h:478
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
groebner_defs.h
polybori::groebner::TimesConstantImplication::operator()
Polynomial operator()(const Polynomial &lhs, const PairType &rhs) const
Definition: TimesConstantImplication.h:34
polybori::groebner::TimesConstantImplication
Definition: TimesConstantImplication.h:31