[599326] | 1 | #include <kernel/mod2.h> |
---|
[030573] | 2 | #ifdef HAVE_F5C |
---|
| 3 | #include <unistd.h> |
---|
[599326] | 4 | #include <kernel/structs.h> |
---|
| 5 | #include <kernel/kutil.h> |
---|
[76cfef] | 6 | #include <omalloc/omalloc.h> |
---|
[210e07] | 7 | #include <polys/polys.h> |
---|
| 8 | #include <polys/monomials/p_polys.h> |
---|
[76cfef] | 9 | #include <polys/templates/p_Procs.h> |
---|
[599326] | 10 | #include <kernel/ideals.h> |
---|
| 11 | #include <kernel/febase.h> |
---|
| 12 | #include <kernel/kstd1.h> |
---|
| 13 | #include <kernel/khstd.h> |
---|
[210e07] | 14 | #include <polys/kbuckets.h> |
---|
[76cfef] | 15 | #include <polys/weight.h> |
---|
[210e07] | 16 | #include <misc/intvec.h> |
---|
[eedd22] | 17 | #include <libpolys/polys/polys.h> |
---|
[599326] | 18 | #include <kernel/f5c.h> |
---|
| 19 | #include <kernel/F5cData.h> |
---|
| 20 | #include <kernel/F5cLists.h> |
---|
| 21 | #include <kernel/timer.h> |
---|
[030573] | 22 | /* |
---|
| 23 | ========================================================================== |
---|
| 24 | MAIN:computes a gb of the ideal i in the ring r with our F5 implementation |
---|
| 25 | ========================================================================== |
---|
| 26 | */ |
---|
[df638fb] | 27 | ideal f5cMain(ideal id, ring r) { |
---|
[e44367] | 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; |
---|
[030573] | 45 | } |
---|
| 46 | |
---|
| 47 | #endif |
---|
[ae625f] | 48 | // HAVE_F5C |
---|