repo.or.cz
/
barvinok.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make ray lexico-positive
[barvinok.git]
/
genfun.h
blob
ead4f7626e14ef3dc3539781594cce5ff8641f0d
1
#ifndef GENFUN_H
2
#define GENFUN_H
3
4
#include <vector>
5
#include <gmp.h>
6
#include <NTL/mat_ZZ.h>
7
extern
"C"
{
8
#include <polylib/polylibgmp.h>
9
}
10
11
#ifdef NTL_STD_CXX
12
using namespace
NTL
;
13
#endif
14
15
struct
short_rat
{
16
struct
{
17
mat_ZZ coeff
;
18
mat_ZZ power
;
19
}
n
;
20
struct
{
21
mat_ZZ power
;
22
}
d
;
23
};
24
25
struct
gen_fun
{
26
std
::
vector
<
short_rat
* >
term
;
27
28
void
add
(
ZZ
&
cn
,
ZZ
&
cd
,
vec_ZZ
&
num
,
mat_ZZ
&
den
);
29
void
print
(
void
);
30
};
31
32
#endif