enumerator: support primal (half-open) decompositions
[barvinok.git] / lattice_point.h
blob3381ddd9fd044947d4ff8760c96da8d6c6b1a906
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 vec_ZZ constant;
33 void lattice_point(Param_Vertices* V, const mat_ZZ& rays, vec_ZZ& lambda,
34 term_info* term, unsigned long det, int *closed,
35 barvinok_options *options);
37 #endif