spielwiese
Last change
on this file since 841e96d was
841e96d,
checked in by Hans Schönemann <hannes@…>, 18 years ago
|
*hannes: frwalk stuff
git-svn-id: file:///usr/local/Singular/svn/trunk@8047 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | #include "intvec.h" |
---|
2 | #include "int64vec.h" |
---|
3 | |
---|
4 | enum WalkState{ |
---|
5 | WalkNoIdeal, |
---|
6 | WalkIncompatibleRings, |
---|
7 | WalkIntvecProblem, |
---|
8 | WalkOverFlowError, |
---|
9 | /* |
---|
10 | these could be defined to make error management more elegant |
---|
11 | WalkOverFlowError1, |
---|
12 | WalkOverFlowError2, |
---|
13 | WalkOverFlowError3, |
---|
14 | WalkOverFlowError4, |
---|
15 | WalkOverFlowError5, |
---|
16 | WalkOverFlowError6, |
---|
17 | WalkOverFlowError7, |
---|
18 | WalkOverFlowError8, |
---|
19 | WalkOverFlowError9, |
---|
20 | WalkOverFlowError10, |
---|
21 | WalkOverFlowError11, |
---|
22 | WalkOverFlowError12, |
---|
23 | WalkOverFlowError13, |
---|
24 | */ |
---|
25 | WalkIncompatibleDestRing, |
---|
26 | WalkIncompatibleSourceRing, |
---|
27 | WalkOk |
---|
28 | |
---|
29 | }; |
---|
30 | |
---|
31 | /* |
---|
32 | overflow_error table |
---|
33 | 1: Miv64DotProduct mult |
---|
34 | 2: Miv64DotProduct add |
---|
35 | 3: gett64 zaehler mult |
---|
36 | 4: gett64 zaehler add (not necessarily overflow but quite probable) |
---|
37 | 5: gett64 nenner mult |
---|
38 | 6: gett64 nenner add (not necessarily overflow but quite probable) |
---|
39 | 7: nextw64 mult a |
---|
40 | 8: nextw64 mult b |
---|
41 | 9: nextw64 add (not necessarily overflow but quite probable) |
---|
42 | 10: getinveps64 mult |
---|
43 | 11: getinveps64 add |
---|
44 | 12: gettaun64 mult |
---|
45 | 13: gettaun64 add (not necessarily overflow but quite probable) |
---|
46 | */ |
---|
47 | |
---|
48 | |
---|
49 | WalkState walkstep64(ideal & G,int64vec* currw,int step); |
---|
50 | WalkState walk64(ideal I,int64vec* currw64,ring destRing,int64vec* destVec64,ideal & destIdeal,BOOLEAN sourceIsSB=FALSE); |
---|
51 | |
---|
52 | //ANOTHER INPUT-VARIABLE ADDED: unperturbedStartVectorStrategy |
---|
53 | //THIS SHOULD BE SET IN walkProc.cc BY THE USER |
---|
54 | WalkState fractalWalk64(ideal sourceIdeal,ring destRing,ideal & destIdeal,BOOLEAN sourceIsSB,BOOLEAN unperturbedStartVectorStrategy); |
---|
55 | //REPLACES firstWalkStep64 FOR fractalWalk64 |
---|
56 | WalkState unperturbedFirstStep64(ideal & G,int64vec* currw64, ring destRing); |
---|
Note: See
TracBrowser
for help on using the repository browser.