ignore zero terms
[barvinok.git] / genfun.h
blobead4f7626e14ef3dc3539781594cce5ff8641f0d
1 #ifndef GENFUN_H
2 #define GENFUN_H
4 #include <vector>
5 #include <gmp.h>
6 #include <NTL/mat_ZZ.h>
7 extern "C" {
8 #include <polylib/polylibgmp.h>
11 #ifdef NTL_STD_CXX
12 using namespace NTL;
13 #endif
15 struct short_rat {
16 struct {
17 mat_ZZ coeff;
18 mat_ZZ power;
19 } n;
20 struct {
21 mat_ZZ power;
22 } d;
25 struct gen_fun {
26 std::vector< short_rat * > term;
28 void add(ZZ& cn, ZZ& cd, vec_ZZ& num, mat_ZZ& den);
29 void print(void);
32 #endif