PolyBoRi
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
groebner
include
polybori
groebner
ShorterEliminationLengthModified.h
Go to the documentation of this file.
1
// -*- c++ -*-
2
//*****************************************************************************
14
//*****************************************************************************
15
16
#ifndef polybori_groebner_ShorterEliminationLengthModified_h_
17
#define polybori_groebner_ShorterEliminationLengthModified_h_
18
19
// include basic definitions
20
#include "
groebner_defs.h
"
21
#include "
GroebnerStrategy.h
"
22
23
BEGIN_NAMESPACE_PBORIGB
24
29
class
ShorterEliminationLengthModified
{
30
public
:
31
const
GroebnerStrategy
*
strat
;
32
wlen_type
el
;
33
deg_type
lm_deg
;
34
ShorterEliminationLengthModified
(
const
GroebnerStrategy
& strat,
wlen_type
el,
deg_type
lm_deg){
35
this->el=el;
36
this->strat=&strat;
37
this->lm_deg=lm_deg;
38
39
}
40
bool
operator() (
const
Exponent
& e){
41
42
PBORI_ASSERT
(e.
deg
()<=lm_deg);
43
44
const
PolyEntry
* p=&strat->generators[e];
45
return
p->
weightedLength
<=el+(lm_deg-p->leadDeg)*p->length;
46
}
47
};
48
49
END_NAMESPACE_PBORIGB
50
51
#endif
/* polybori_ShorterEliminationLengthModified_h_ */
Generated by
1.8.3.1