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

« back to all changes in this revision

Viewing changes to monomial.h

  • 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
1
#ifndef MONOMIAL_H_INCLUDED
2
2
#define MONOMIAL_H_INCLUDED
3
3
 
 
4
#include <string>
4
5
#include "vektor.h"
5
6
#include "polynomialring.h"
6
7
 
 
8
using namespace std;
 
9
 
7
10
class Monomial
8
11
{
9
12
  PolynomialRing theRing;
11
14
  int testtest;
12
15
  IntegerVector exponent;
13
16
  Monomial(PolynomialRing const &r):
14
 
    theRing(r)
 
17
    theRing(r),
 
18
    exponent(r.getNumberOfVariables())/* In Gfan 0.4 the exponent was not initialized. Does this slow the program now?*/
15
19
    {
16
20
    }
17
21
    Monomial(PolynomialRing const &r, IntegerVector const &v);
18
22
  PolynomialRing const &getRing()const{return theRing;}
 
23
  string toString(bool alwaysWriteSign, bool writeIfOne, bool latex/*, bool mathMode*/)const;
19
24
};
20
25
 
21
26
#endif