evalue.c: Polyhedron_Insert: add missing return type
[barvinok.git] / README
blobf88a083808da0844367332817d07df099dd59b99
1 barvinok is a library for counting the number of integer points
2 in parametric and non-parametric polytopes as well as projections
3 of such sets.
4 For parametric polytopes the count is represented by either
5 an explicit function or a generating function.
6 The first comes in the shape of a piece-wise step-polynomial.
7 This is a generalization of both Ehrhart quasi-polynomials
8 and vector partition functions.
9 The second is a generalization of an Ehrhart series.
11 This library shares some functionality with LattE
12 (http://www.math.ucdavis.edu/~latte/)
13 and uses PolyLib (included), PIP (included), NTL (http://shoup.net/ntl/)
14 and optionally Omega (included).
15 If you have cloned the git repository, you need to run
16         git submodule init
17         git submodule update
18         sh autogen.sh
19 to get the submodules and create the configure scripts.
21 Additionally, the following packages can optionally be used
22 - GLPK (http://www.gnu.org/software/glpk/)
23 - GiNaC (http://www.ginac.de/) (needed for the bernstein library and the
24     Omega interface)
26 NTL needs to have been compiled with GMP support.
27 That is, you have to specify
28     NTL_GMP_LIP=on
30 Suppose you want to put everything in /opt,
31 Then you configure/compile NTL using
33 cd src
34 ./configure NTL_GMP_LIP=on PREFIX=/opt GMP_PREFIX=/path/to/gmp
35 make
36 make install
38 Configure this library using
40 ./configure --prefix=/opt --with-libgmp=/path/to/gmp  --with-ntl=/opt
42 If you want shared libraries, then configure with the
43 --enable-shared-barvinok option.
44 Note that this doesn't work on some systems because we link in libntl, which
45 is only available as a static library.
46 Also note that if you have previously installed a shared library of an older
47 version of barvinok, and you do not install one for this version, then the
48 linker may pick up the old shared library rather than the new static library.
50 If you don't want to compile and use Omega, then configure with
51 the --without-omega option.
53 Then
55 make
56 make check
57 make install
59 If you want to put any one of these packages in the default location
60 (typically /usr/local), then the prefix argument can be omitted.
61 For more information on other arguments,
63 ./configure --help
65 The input format of barvinok_enumerate is the same as that
66 of testehrhart from the PolyLib distribution.
67 See the PolyLib manual, barvinok_enumerate.c or the
68 examples in tests/ehrhart/ .
70 Note that the fractional representation is subject to change.
72 The library supports three specialization algorithms.
73 The first performs a direct specialization using a random vector.
74 The second performs a "depth-first" incremental specialization.
75 The third performs a "breadth-first" incremental specialization.
77 The first is usually the fastest, but can fail if the random
78 vector happens to be chosen incorrectly.
79 The incremental algorithms should never fail, but can be slower,
80 in some cases by quite a bit.  The breadth-first version should
81 be faster than the depth-first version, especially on polytopes
82 of moderate dimension with a lot of "structure", but can require
83 more memory.
85 Sven Verdoolaege <skimo@kotnet.org>