1 | #ifndef GRING_H |
---|
2 | #define GRING_H |
---|
3 | /**************************************** |
---|
4 | * Computer Algebra System SINGULAR * |
---|
5 | ****************************************/ |
---|
6 | /* $Id: ratgring.h,v 1.1 2007-01-14 22:12:33 levandov Exp $ */ |
---|
7 | /* |
---|
8 | * ABSTRACT additional defines etc for --with-plural |
---|
9 | */ |
---|
10 | |
---|
11 | #ifdef HAVE_PLURAL |
---|
12 | #include "structs.h" |
---|
13 | |
---|
14 | /* MACROS */ |
---|
15 | |
---|
16 | /* the part, related to the interface */ |
---|
17 | |
---|
18 | ring nc_rCreateNCcomm(ring r); |
---|
19 | |
---|
20 | /* poly functions defined in p_Procs : */ |
---|
21 | poly nc_pp_Mult_mm(poly p, poly m, const ring r, poly &last); |
---|
22 | poly nc_p_Mult_mm(poly p, const poly m, const ring r); |
---|
23 | poly nc_p_Minus_mm_Mult_qq(poly p, const poly m, poly q, const ring r); |
---|
24 | poly nc_p_Minus_mm_Mult_qq_ign(poly p, const poly m, poly q, int & d1, poly d2, const ring ri, poly &d3); |
---|
25 | |
---|
26 | /* other routines we need in addition : */ |
---|
27 | poly nc_p_Mult_mm_Common(poly p, const poly m, int side, const ring r); |
---|
28 | poly nc_mm_Mult_p(const poly m, poly p, const ring r); |
---|
29 | poly nc_mm_Mult_nn (int *F, int *G, const ring r); |
---|
30 | poly nc_mm_Mult_uu (int *F,int jG,int bG, const ring r); |
---|
31 | |
---|
32 | /* subst: */ |
---|
33 | poly nc_pSubst(poly p, int n, poly e); |
---|
34 | |
---|
35 | /* copy : */ |
---|
36 | poly nc_p_CopyGet(poly a, const ring r); |
---|
37 | poly nc_p_CopyPut(poly a, const ring r); |
---|
38 | |
---|
39 | /* syzygies : */ |
---|
40 | /* former nc_spGSpolyCreate */ |
---|
41 | poly nc_CreateSpoly(poly p1, poly p2, poly spNoether, const ring r); |
---|
42 | /* former nc_spGSpolyRed */ |
---|
43 | poly nc_ReduceSpoly(poly p1, poly p2, poly spNoether, const ring r); |
---|
44 | /* former nc_spGSpolyRedNew */ |
---|
45 | poly nc_ReduceSpolyNew(poly p1, poly p2, poly spNoether, const ring r); |
---|
46 | /* former nc_spGSpolyRedTail */ |
---|
47 | void nc_ReduceSpolyTail(poly p1, poly q, poly q2, poly spNoether, const ring r); |
---|
48 | /* former nc_spShort */ |
---|
49 | poly nc_CreateShortSpoly(poly p1, poly p2, const ring r=currRing); |
---|
50 | |
---|
51 | ideal gr_bba (ideal F, ideal Q,kStrategy strat); |
---|
52 | |
---|
53 | /* brackets: */ |
---|
54 | poly nc_p_Bracket_qq(poly p, poly q); |
---|
55 | poly nc_mm_Bracket_nn(poly m1, poly m2); |
---|
56 | |
---|
57 | /* twostd: */ |
---|
58 | ideal twostd(ideal I); |
---|
59 | /* Ann: */ |
---|
60 | ideal Approx_Step(ideal L); |
---|
61 | |
---|
62 | /* complete reduction routines */ |
---|
63 | |
---|
64 | /* void nc_kBucketPolyRed(kBucket_pt b, poly p); */ |
---|
65 | void nc_kBucketPolyRed(kBucket_pt b, poly p, number *c); |
---|
66 | void nc_kBucketPolyRed_Z(kBucket_pt b, poly p, number *c); |
---|
67 | void nc_PolyPolyRed(poly &b, poly p, number *c); |
---|
68 | |
---|
69 | matrix nc_PrintMat(int a, int b, ring r, int metric); |
---|
70 | |
---|
71 | poly p_CopyEmbed(poly p, ring srcRing, int shift, int par_shift); |
---|
72 | poly pOppose(ring Rop, poly p); |
---|
73 | ideal idOppose(ring Rop, ideal I); |
---|
74 | |
---|
75 | #else |
---|
76 | /* dummy definition to make gcc happy */ |
---|
77 | #define nc_kBucketPolyRed(A,B,C) 0 |
---|
78 | #define nc_PolyPolyRed(A,B,C) 0 |
---|
79 | |
---|
80 | #endif /* HAVE_PLURAL */ |
---|
81 | #endif |
---|