Frobby
0.10.0
Toggle main menu visibility
Loading...
Searching...
No Matches
src
BigattiHilbertAlgorithm.h
1
/* Frobby: Software for monomial ideal computations.
2
Copyright (C) 2009 University of Aarhus
3
Contact Bjarke Hammersholt Roune for license information (www.broune.com)
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program. If not, see http://www.gnu.org/licenses/.
17
*/
18
#ifndef BIGATTI_HILBERT_ALGORITHM_GUARD
19
#define BIGATTI_HILBERT_ALGORITHM_GUARD
20
21
#include "TaskEngine.h"
22
#include "Ideal.h"
23
#include "ObjectCache.h"
24
#include "BigattiState.h"
25
#include "BigattiBaseCase.h"
26
#include "BigattiPivotStrategy.h"
27
#include "BigattiParams.h"
28
29
class
CoefBigTermConsumer
;
30
class
Term
;
31
32
class
BigattiHilbertAlgorithm
{
33
public
:
38
BigattiHilbertAlgorithm
(unique_ptr<Ideal> ideal,
39
const
TermTranslator
& translator,
40
const
BigattiParams
& params,
41
unique_ptr<BigattiPivotStrategy> pivot,
42
CoefBigTermConsumer
& consumer);
43
~BigattiHilbertAlgorithm
();
44
45
void
setPrintStatistics(
bool
value);
46
void
setPrintDebug(
bool
value);
47
void
setUseSimplification(
bool
value);
48
void
setDoCanonicalOutput(
bool
value);
49
void
setComputeUnivariate(
bool
value);
50
51
void
run();
52
53
private
:
54
void
processState(unique_ptr<BigattiState> state);
55
void
getPivot(BigattiState& state,
size_t
& var, Exponent& e);
56
void
simplify(BigattiState& state);
57
58
void
freeState(unique_ptr<BigattiState> state);
59
60
size_t
_varCount;
61
const
TermTranslator
& _translator;
62
CoefBigTermConsumer
* _consumer;
63
TaskEngine
_tasks;
64
ObjectCache<BigattiState>
_stateCache;
65
66
Term
_tmp_processState_pivot;
67
Term
_tmp_simplify_gcd;
68
69
BigattiBaseCase
_baseCase;
70
71
unique_ptr<BigattiPivotStrategy> _pivot;
72
73
bool
_computeUnivariate;
74
BigattiParams
_params;
75
76
friend
class
BigattiState;
77
};
78
79
#endif
BigattiBaseCase
Definition
BigattiBaseCase.h:33
BigattiHilbertAlgorithm::BigattiHilbertAlgorithm
BigattiHilbertAlgorithm(unique_ptr< Ideal > ideal, const TermTranslator &translator, const BigattiParams ¶ms, unique_ptr< BigattiPivotStrategy > pivot, CoefBigTermConsumer &consumer)
Definition
BigattiHilbertAlgorithm.cpp:27
BigattiParams
Definition
BigattiParams.h:25
CoefBigTermConsumer
Definition
CoefBigTermConsumer.h:29
ObjectCache
Definition
ObjectCache.h:35
TaskEngine
Definition
TaskEngine.h:40
TermTranslator
Definition
TermTranslator.h:41
Term
Definition
Term.h:49
Generated by
1.17.0