spielwiese
Last change
on this file since 06662e was
e44367,
checked in by Christian Eder, 15 years ago
|
first implementation of classes Label, CPair and RuleAndShort
git-svn-id: file:///usr/local/Singular/svn/trunk@11964 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | #include "mod2.h" |
---|
2 | #ifdef HAVE_F5C |
---|
3 | #include <unistd.h> |
---|
4 | #include "structs.h" |
---|
5 | #include "kutil.h" |
---|
6 | #include "omalloc.h" |
---|
7 | #include "polys.h" |
---|
8 | #include "p_polys.h" |
---|
9 | #include "p_Procs.h" |
---|
10 | #include "ideals.h" |
---|
11 | #include "febase.h" |
---|
12 | #include "kstd1.h" |
---|
13 | #include "khstd.h" |
---|
14 | #include "kbuckets.h" |
---|
15 | #include "weight.h" |
---|
16 | #include "intvec.h" |
---|
17 | #include "pInline1.h" |
---|
18 | #include "f5c.h" |
---|
19 | #include "F5cData.h" |
---|
20 | #include "F5cLists.h" |
---|
21 | #include "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 |
---|
Note: See
TracBrowser
for help on using the repository browser.