PolyBoRi
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
groebner
include
polybori
groebner
LessCombinedManySizesInStrat.h
Go to the documentation of this file.
1
// -*- c++ -*-
2
//*****************************************************************************
14
//*****************************************************************************
15
16
#ifndef polybori_groebner_LessCombinedManySizesInStrat_h_
17
#define polybori_groebner_LessCombinedManySizesInStrat_h_
18
19
// include basic definitions
20
#include "
groebner_defs.h
"
21
22
BEGIN_NAMESPACE_PBORIGB
23
28
class
LessCombinedManySizesInStrat
{
29
public
:
30
const
GroebnerStrategy
*
strat
;
31
LessCombinedManySizesInStrat
(
GroebnerStrategy
& strat){
32
this->strat=&strat;
33
}
34
35
bool
operator() (
const
Monomial
& a ,
const
Monomial
& b)
const
{
36
return
operator()(strat->
generators
[a], strat->
generators
[b]);
37
}
38
39
private
:
40
bool
operator() (
const
PolyEntry
& entry1,
const
PolyEntry
& entry2)
const
{
41
deg_type
d1 = entry1.
tailVariables
.
deg
();
42
deg_type
d2 = entry2.
tailVariables
.
deg
();
43
wlen_type
w1 = d1;
44
wlen_type
w2 = d2;
45
w1 *= entry1.
length
;
46
w1 *= entry1.
ecart
();
47
w2 *= entry2.
length
;
48
w2 *= entry2.
ecart
();
49
return
w1 < w2;
50
}
51
};
52
53
END_NAMESPACE_PBORIGB
54
55
#endif
/* polybori_LessCombinedManySizesInStrat_h_ */
polybori::groebner::PolyEntry::ecart
deg_type ecart() const
Definition:
PolyEntry.h:54
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition:
groebner_defs.h:16
polybori::groebner::deg_type
int deg_type
Definition:
groebner_defs.h:42
polybori::groebner::PolyEntryBase::tailVariables
Exponent tailVariables
Definition:
PolyEntryBase.h:63
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::LessCombinedManySizesInStrat::strat
const GroebnerStrategy * strat
Definition:
LessCombinedManySizesInStrat.h:30
groebner_defs.h
polybori::groebner::GroebnerStrategy
This class defines GroebnerStrategy.
Definition:
GroebnerStrategy.h:41
polybori::groebner::wlen_type
long wlen_type
Definition:
groebner_defs.h:39
polybori::groebner::LessCombinedManySizesInStrat
This class defines LessCombinedManySizesInStrat.
Definition:
LessCombinedManySizesInStrat.h:28
polybori::groebner::LessCombinedManySizesInStrat::LessCombinedManySizesInStrat
LessCombinedManySizesInStrat(GroebnerStrategy &strat)
Definition:
LessCombinedManySizesInStrat.h:31
polybori::groebner::PolyEntryBase::length
len_type length
Definition:
PolyEntryBase.h:57
polybori::BooleMonomial
This class is just a wrapper for using variables from cudd's decicion diagram.
Definition:
BooleMonomial.h:50
polybori::BooleExponent::deg
deg_type deg() const
Degree of the corresponding monomial.
Definition:
BooleExponent.h:118
Generated by
1.8.9.1