File: integergb.h

package info (click to toggle)
gfan 0.5%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,348 kB
  • ctags: 5,683
  • sloc: cpp: 39,675; makefile: 454; sh: 1
file content (48 lines) | stat: -rw-r--r-- 1,250 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * integergb.h
 *
 *  Created on: Dec 14, 2010
 *      Author: anders
 */

#ifndef INTEGERGB_H_
#define INTEGERGB_H_

/*
 * integergb.cpp
 *
 *  Created on: Dec 14, 2010
 *      Author: anders
 */

#include "polynomial.h"
#include "field_rationals.h"
#include "symmetrictraversal.h"

/*
 * Implemented according to [Becker, Weispfenning].
 */

Polynomial dDivision(Polynomial p, PolynomialSet const &l, TermOrder const &termOrder);
Polynomial spol(Polynomial const &g1, Polynomial const &g2);
Polynomial gpol(Polynomial const &g1, Polynomial const &g2);
void zAutoReduce(PolynomialSet *g, TermOrder const &termOrder);
void zBuchberger(PolynomialSet &F, TermOrder const &T);

class IntegerGroebnerFanTraverser: public ConeTraverser
{
  PolynomialSet groebnerBasis;
  PolyhedralCone theCone;
  int n;//,d;
  int prime;
  void updatePolyhedralCone();
public:
  IntegerGroebnerFanTraverser(PolynomialSet const &generators);
  virtual void changeCone(IntegerVector const &ridgeVector, IntegerVector const &rayVector);
  virtual IntegerVectorList link(IntegerVector const &ridgeVector);
  PolyhedralCone & refToPolyhedralCone();
//  PolynomialSet &refToGroebnerBasisRepresentation();
//  PolynomialSet initialIdeal()const;
};

#endif /* INTEGERGB_H_ */