PolyBoRi
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
groebner
include
polybori
groebner
LessEcartThenLessWeightedLengthInStrat.h
Go to the documentation of this file.
1
// -*- c++ -*-
2
//*****************************************************************************
14
//*****************************************************************************
15
16
#ifndef polybori_groebner_LessEcartThenLessWeightedLengthInStrat_h_
17
#define polybori_groebner_LessEcartThenLessWeightedLengthInStrat_h_
18
19
// include basic definitions
20
#include "
groebner_defs.h
"
21
22
BEGIN_NAMESPACE_PBORIGB
23
28
class
LessEcartThenLessWeightedLengthInStrat
{
29
public
:
30
const
GroebnerStrategy
*
strat
;
31
LessEcartThenLessWeightedLengthInStrat
(
const
GroebnerStrategy
& strat){
32
this->strat=&strat;
33
}
34
35
bool
operator() (
const
Monomial
& a ,
const
Monomial
& b){
36
return
compare(strat->
generators
[a], strat->
generators
[b]);
37
}
38
39
bool
operator() (
const
Exponent
& a ,
const
Exponent
& b){
40
return
compare(strat->
generators
[a], strat->
generators
[b]);
41
}
42
43
private
:
44
45
bool
compare(
const
PolyEntry
& val1,
const
PolyEntry
& val2)
const
{
46
if
(val1.
ecart
() != val2.
ecart
())
47
return
(val1.
ecart
() < val2.
ecart
());
48
49
return
(val1.
weightedLength
< val2.
weightedLength
);
50
}
51
52
};
53
54
END_NAMESPACE_PBORIGB
55
56
#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
Generated by
1.8.9.1