Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > by-pkgid > e1c4a3050d44123471c4053e4926e965 > files > 196

gfan-debug-0.4plus-2mdv2011.0.i586.rpm

#ifndef MONOMIAL_H_INCLUDED
#define MONOMIAL_H_INCLUDED

#include <string>
#include "vektor.h"
#include "polynomialring.h"

using namespace std;

class Monomial
{
  PolynomialRing theRing;
 public:
  int testtest;
  IntegerVector exponent;
  Monomial(PolynomialRing const &r):
  theRing(r),
    exponent(r.getNumberOfVariables())/* In Gfan 0.4 the exponent was not initialized. Does this slow the program now?*/    {
    }
    Monomial(PolynomialRing const &r, IntegerVector const &v);
  PolynomialRing const &getRing()const{return theRing;}
  string toString(bool alwaysWriteSign, bool writeIfOne, bool latex/*, bool mathMode*/)const;
};

#endif