1 | #include <kernel/mod2.h> |
---|
2 | #ifdef HAVE_F5C |
---|
3 | #include <unistd.h> |
---|
4 | #include <kernel/structs.h> |
---|
5 | #include <kernel/kutil.h> |
---|
6 | #include <omalloc/omalloc.h> |
---|
7 | #include <polys/polys.h> |
---|
8 | #include <polys/monomials/p_polys.h> |
---|
9 | #include <polys/templates/p_Procs.h> |
---|
10 | #include <kernel/ideals.h> |
---|
11 | #include <kernel/febase.h> |
---|
12 | #include <kernel/kstd1.h> |
---|
13 | #include <kernel/khstd.h> |
---|
14 | #include <polys/kbuckets.h> |
---|
15 | #include <polys/weight.h> |
---|
16 | #include <misc/intvec.h> |
---|
17 | #include <kernel/pInline1.h> |
---|
18 | #include <kernel/f5c.h> |
---|
19 | #include <kernel/F5cData.h> |
---|
20 | #include <kernel/F5cLists.h> |
---|
21 | #include <kernel/timer.h> |
---|
22 | /* |
---|
23 | ========================================================================== |
---|
24 | MAIN:computes a gb of the ideal i in the ring r with our F5 implementation |
---|
25 | ========================================================================== |
---|
26 | */ |
---|
27 | ideal f5cMain(ideal id, ring r) { |
---|
28 | Print("SHORT EXP VECTOR 1: %ld\n", pGetShortExpVector(id->m[0])); |
---|
29 | int* expVec = new int[(r->N)+1]; |
---|
30 | pGetExpV(id->m[0],expVec); |
---|
31 | Print("EXP VECTOR 1: %d\n",expVec[1]); |
---|
32 | Label* label = new Label(expVec); |
---|
33 | Print("EXP VECTOR 2: %d\n", label->getExpVec()[1]); |
---|
34 | Print("SHORT EXP VECTOR 2: %ld\n", label->getShortExpVec()); |
---|
35 | //Print("%ld\n", label->computeShortExpVec(expVec)); |
---|
36 | Print("SHORT EXP VECTOR 1: %ld\n", pGetShortExpVector(id->m[1])); |
---|
37 | //int* expVec = new int[(r->N)+1]; |
---|
38 | pGetExpV(id->m[1],expVec); |
---|
39 | Print("EXP VECTOR 1: %d\n",expVec[1]); |
---|
40 | Label* label2 = new Label(expVec); |
---|
41 | Print("EXP VECTOR 2: %d\n", label2->getExpVec()[1]); |
---|
42 | Print("SHORT EXP VECTOR 2: %ld\n", label2->getShortExpVec()); |
---|
43 | |
---|
44 | return id; |
---|
45 | } |
---|
46 | |
---|
47 | #endif |
---|
48 | // HAVE_F5C |
---|