~ubuntu-branches/ubuntu/saucy/gfan/saucy-proposed

« back to all changes in this revision

Viewing changes to ge_gfan.cpp

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier
  • Date: 2013-07-09 10:44:01 UTC
  • mfrom: (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130709104401-5q66ozz5j5af0dak
Tags: 0.5+dfsg-3
* Upload to unstable.
* modify remove_failing_tests_on_32bits.patch to replace command of
  0009RenderStairCase test with an empty one instead of deleting it.
* remove lintian override about spelling error

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "groebnerengine.h"
 
2
#include "buchberger.h"
 
3
#include "printer.h"
 
4
 
 
5
class GroebnerEngineGfan : public GroebnerEngine
 
6
{
 
7
  virtual PolynomialSet groebnerBasis(bool &success, PolynomialSet const &idealGenerators, TermOrder const &termOrder, bool autoreduce)
 
8
  {
 
9
    success=true;
 
10
    PolynomialSet ret=idealGenerators;
 
11
    buchberger(&ret,termOrder);
 
12
    return ret;
 
13
  }
 
14
  virtual PolynomialSet autoReduce(bool &success, PolynomialSet const &idealGenerators)
 
15
  {
 
16
    success=true;
 
17
    PolynomialSet ret=idealGenerators;
 
18
    autoReduce_(&ret,LexicographicTermOrder());//term order is ignored in autoReduce_() but this could change
 
19
    return ret;
 
20
  }
 
21
  virtual const char* name()
 
22
  {
 
23
    return "gfan";
 
24
  }
 
25
};
 
26
 
 
27
static GroebnerEngineGfan groebnerEngineGfan;