File: ge_gfan.cpp

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 (27 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (2)
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
#include "groebnerengine.h"
#include "buchberger.h"
#include "printer.h"

class GroebnerEngineGfan : public GroebnerEngine
{
  virtual PolynomialSet groebnerBasis(bool &success, PolynomialSet const &idealGenerators, TermOrder const &termOrder, bool autoreduce)
  {
    success=true;
    PolynomialSet ret=idealGenerators;
    buchberger(&ret,termOrder);
    return ret;
  }
  virtual PolynomialSet autoReduce(bool &success, PolynomialSet const &idealGenerators)
  {
    success=true;
    PolynomialSet ret=idealGenerators;
    autoReduce_(&ret,LexicographicTermOrder());//term order is ignored in autoReduce_() but this could change
    return ret;
  }
  virtual const char* name()
  {
    return "gfan";
  }
};

static GroebnerEngineGfan groebnerEngineGfan;