Frobby 0.9.5
BigattiHilbertAlgorithm.h
Go to the documentation of this file.
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"
27#include "BigattiParams.h"
28
30class Term;
31
33public:
38 BigattiHilbertAlgorithm(auto_ptr<Ideal> ideal,
39 const TermTranslator& translator,
40 const BigattiParams& params,
41 auto_ptr<BigattiPivotStrategy> pivot,
42 CoefBigTermConsumer& consumer);
43
44 void setPrintStatistics(bool value);
45 void setPrintDebug(bool value);
46 void setUseSimplification(bool value);
47 void setDoCanonicalOutput(bool value);
48 void setComputeUnivariate(bool value);
49
50 void run();
51
52private:
53 void processState(auto_ptr<BigattiState> state);
54 void getPivot(BigattiState& state, size_t& var, Exponent& e);
55 void simplify(BigattiState& state);
56
57 void freeState(auto_ptr<BigattiState> state);
58
59 size_t _varCount;
64
67
69
70 auto_ptr<BigattiPivotStrategy> _pivot;
71
74
75 friend class BigattiState;
76};
77
78#endif
This class handles the base cases for the Hilbert-Poincare series by Bigatti et.al.
void setDoCanonicalOutput(bool value)
BigattiHilbertAlgorithm(auto_ptr< Ideal > ideal, const TermTranslator &translator, const BigattiParams &params, auto_ptr< BigattiPivotStrategy > pivot, CoefBigTermConsumer &consumer)
Construct an object for running the Bigatti et.al.
void setPrintStatistics(bool value)
void freeState(auto_ptr< BigattiState > state)
auto_ptr< BigattiPivotStrategy > _pivot
CoefBigTermConsumer * _consumer
void getPivot(BigattiState &state, size_t &var, Exponent &e)
void setPrintDebug(bool value)
void simplify(BigattiState &state)
void processState(auto_ptr< BigattiState > state)
ObjectCache< BigattiState > _stateCache
void setUseSimplification(bool value)
const TermTranslator & _translator
TaskEngine handles a list of tasks that are to be carried out.
Definition: TaskEngine.h:40
TermTranslator handles translation between terms whose exponents are infinite precision integers and ...
Term represents a product of variables which does not include a coefficient.
Definition: Term.h:49
unsigned int Exponent
Definition: stdinc.h:89