1 | /**************************************** |
---|
2 | * Computer Algebra System SINGULAR * |
---|
3 | ****************************************/ |
---|
4 | /* $Id: f5gb.h,v 1.13 2008-12-26 13:49:57 ederc Exp $ */ |
---|
5 | /* |
---|
6 | * ABSTRACT: f5gb interface |
---|
7 | */ |
---|
8 | #ifndef F5_HEADER |
---|
9 | #define F5_HEADER |
---|
10 | |
---|
11 | #ifdef HAVE_F5 |
---|
12 | #include "lpolynomial.h" |
---|
13 | #include "lists.h" |
---|
14 | |
---|
15 | |
---|
16 | /* |
---|
17 | ================================================ |
---|
18 | computation of ONE polynomial as global variable |
---|
19 | ================================================ |
---|
20 | */ |
---|
21 | poly one_poly(); |
---|
22 | |
---|
23 | |
---|
24 | /* |
---|
25 | ====================================================== |
---|
26 | sort polynomials in ideal i by decreasing total degree |
---|
27 | ====================================================== |
---|
28 | */ |
---|
29 | void qsort_degree(poly* left, poly* right); |
---|
30 | |
---|
31 | |
---|
32 | /* |
---|
33 | ============================================== |
---|
34 | generating the list lp of ideal generators and |
---|
35 | test if 1 is in lp(return 1) or not(return 0) |
---|
36 | ============================================== |
---|
37 | */ |
---|
38 | void generate_input_list(LPoly* lp, ideal id, poly one); |
---|
39 | |
---|
40 | |
---|
41 | /* |
---|
42 | ================================================== |
---|
43 | computes incrementally gbs of subsets of the input |
---|
44 | gb{f_m} -> gb{f_m,f_(m-1)} -> gb{f_m,...,f_1} |
---|
45 | ================================================== |
---|
46 | */ |
---|
47 | LList* F5inc(const long i, LList* g_prev); |
---|
48 | |
---|
49 | |
---|
50 | /* |
---|
51 | ====================================== |
---|
52 | main function of our f5 implementation |
---|
53 | ====================================== |
---|
54 | */ |
---|
55 | ideal F5main(ideal i, ring r); |
---|
56 | |
---|
57 | |
---|
58 | #endif |
---|
59 | #endif |
---|
60 | |
---|