add an ehrhart example with interesting chambers
[barvinok.git] / basis_reduction.c
blobe9ce03c8aa80b0ad6bf7265bbdc1597ec24e40e0
1 #include <barvinok/basis_reduction.h>
2 #include <barvinok/options.h>
3 #include "config.h"
5 #ifndef HAVE_LIBGLPK
6 Matrix *glpk_Polyhedron_Reduced_Basis(Polyhedron *P)
8 assert(0);
10 #endif
12 #ifndef HAVE_LIBCDDGMP
13 Matrix *cdd_Polyhedron_Reduced_Basis(Polyhedron *P)
15 assert(0);
17 #endif
19 Matrix *Polyhedron_Reduced_Basis(Polyhedron *P, struct barvinok_options *options)
21 if (options->gbr_lp_solver == BV_GBR_GLPK)
22 return glpk_Polyhedron_Reduced_Basis(P);
23 else if (options->gbr_lp_solver == BV_GBR_CDD)
24 return cdd_Polyhedron_Reduced_Basis(P);
25 else
26 assert(0);