lattice_point.cc: use some helper functions to simplify code
[barvinok.git] / lattice_point.h
blob9bac16ddfa3263aafd0dd568210bbf841f7b8882
1 #ifndef LATTICE_POINT_H
2 #define LATTICE_POINT_H
4 #include <gmp.h>
5 #include <NTL/vec_ZZ.h>
6 #include <barvinok/polylib.h>
8 #ifdef NTL_STD_CXX
9 using namespace NTL;
10 #endif
12 struct barvinok_options;
14 evalue *multi_monom(vec_ZZ& p);
15 int normal_mod(Value *coef, int len, Value *m);
16 void lattice_point(Value* values, const mat_ZZ& rays, vec_ZZ& vertex, int *closed);
17 void lattice_point(Value* values, const mat_ZZ& rays, mat_ZZ& vertex,
18 unsigned long det, int *closed);
19 void lattice_point(Param_Vertices *V, const mat_ZZ& rays, vec_ZZ& num,
20 evalue **E_vertex, barvinok_options *options);
22 /* This structure encodes the power of the term in a rational generating function.
24 * Either E == NULL or constant = 0
25 * If E != NULL, then the power is E
26 * If E == NULL, then the power is constant
28 struct term_info {
29 evalue *E;
30 ZZ constant;
33 void lattice_point(Param_Vertices* V, const mat_ZZ& rays, vec_ZZ& lambda,
34 term_info* term, Polyhedron *PD, barvinok_options *options);
36 #endif