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
use provided parameter names
[barvinok.git]
/
genfun.h
blob
3c913c082c6278998450aa22ede7cc29f5af0fba
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
(
unsigned int
nparam
,
char
**
param_name
);
30
};
31
32
#endif