dpoly: add some documentation
[barvinok.git] / polysign.c
blobba657e5dd6993c90df382bbab6985cf34825f2d8
1 #include <barvinok/options.h>
2 #include <barvinok/util.h>
3 #include "polysign.h"
4 #include "config.h"
6 #ifndef HAVE_LIBCDDGMP
7 enum order_sign cdd_polyhedron_affine_sign(Polyhedron *D, Matrix *T,
8 struct lexmin_options *options)
10 assert(0);
12 #endif
14 enum order_sign polyhedron_affine_sign(Polyhedron *D, Matrix *T,
15 struct lexmin_options *options)
17 if (options->polysign == BV_LEXMIN_POLYSIGN_POLYLIB)
18 return PL_polyhedron_affine_sign(D, T, options->barvinok);
19 else if (options->polysign == BV_LEXMIN_POLYSIGN_CDD)
20 return cdd_polyhedron_affine_sign(D, T, options->barvinok);
21 else if (options->polysign == BV_LEXMIN_POLYSIGN_CDDF)
22 return cddf_polyhedron_affine_sign(D, T, options->barvinok);
23 else
24 assert(0);