source: git/kernel/ratgring.h @ d0f98e

spielwiese
Last change on this file since d0f98e was ac4b53, checked in by Hans Schönemann <hannes@…>, 16 years ago
*hanne: HAVE_RATGRING git-svn-id: file:///usr/local/Singular/svn/trunk@10543 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.6 KB
Line 
1#ifndef RATGRING_H
2#define RATGRING_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: ratgring.h,v 1.5 2008-01-31 13:23:25 Singular Exp $ */
7/*
8* ABSTRACT additional defines etc for --with-plural
9*/
10// #define HAVE_RATGRING to activate
11
12#ifdef HAVE_RATGRING
13#include "structs.h"
14
15/* MACROS */
16
17/* the part, related to the interface */ 
18
19/* ring nc_rCreateNCcomm(ring r); */
20
21void pLcmRat(poly a, poly b, poly m, int rat_shift);
22
23//void pLcmRat(poly a, poly b, poly m, poly pshift);
24
25poly p_GetCoeffRat(poly p, int ishift, ring r);
26
27poly p_HeadRat(poly p, int ishift, ring r);
28
29void p_LmDeleteAndNextRat(poly *p, int ishift, ring r);
30
31void p_ExpVectorDiffRat(poly pr, poly p1, poly p2, int ishift, ring r);
32
33ideal ncGCD(poly p, poly q, ring r);
34
35//poly nc_rat_CreateSpoly(poly p1, poly p2, poly spNoether, int ishift, ring r);
36
37poly nc_rat_ReduceSpolyNew(poly p1, poly p2, int ishift, ring r);
38
39
40/* poly functions defined in p_Procs : */
41// poly nc_pp_Mult_mm(poly p, poly m, const ring r, poly &last);
42// poly nc_p_Mult_mm(poly p, const poly m, const ring r);
43// poly nc_p_Minus_mm_Mult_qq(poly p, const poly m, poly q, const ring r);
44// poly nc_p_Minus_mm_Mult_qq_ign(poly p, const poly m, poly q, int & d1, poly d2, const ring ri, poly &d3);
45
46/* other routines we need in addition : */
47// poly nc_p_Mult_mm_Common(poly p, const poly m, int side, const ring r);
48// poly nc_mm_Mult_p(const poly m, poly p, const ring r);
49// poly nc_mm_Mult_nn (int *F, int *G, const ring r);
50// poly nc_mm_Mult_uu (int *F,int jG,int bG, const ring r);
51
52// /* subst: */
53// poly nc_pSubst(poly p, int n, poly e);
54
55// /* copy : */
56// poly nc_p_CopyGet(poly a, const ring r);
57// poly nc_p_CopyPut(poly a, const ring r);
58
59// /* syzygies : */
60// /* former nc_spGSpolyCreate */
61// poly nc_CreateSpoly(poly p1, poly p2, poly spNoether, const ring r);
62// /* former nc_spGSpolyRed */
63// poly nc_ReduceSpoly(poly p1, poly p2, poly spNoether, const ring r);
64// /* former nc_spGSpolyRedNew */
65// poly nc_ReduceSpolyNew(poly p1, poly p2, poly spNoether, const ring r);
66// /* former nc_spGSpolyRedTail */
67// void nc_ReduceSpolyTail(poly p1, poly q, poly q2, poly spNoether, const ring r);
68// /* former nc_spShort */
69// poly nc_CreateShortSpoly(poly p1, poly p2, const ring r=currRing);
70
71// ideal gr_bba (ideal F, ideal Q,kStrategy strat);
72
73// /* brackets: */
74// poly nc_p_Bracket_qq(poly p, poly q);
75// poly nc_mm_Bracket_nn(poly m1, poly m2);
76
77// /* twostd: */
78// ideal twostd(ideal I);
79// /* Ann: */
80// ideal Approx_Step(ideal L);
81
82// /* complete reduction routines */
83
84// /* void nc_kBucketPolyRed(kBucket_pt b, poly p); */
85// void nc_kBucketPolyRed(kBucket_pt b, poly p, number *c);
86// void nc_kBucketPolyRed_Z(kBucket_pt b, poly p, number *c);
87// void nc_PolyPolyRed(poly &b, poly p, number *c);
88
89// matrix nc_PrintMat(int a, int b, ring r, int metric);
90
91// poly p_CopyEmbed(poly p, ring srcRing, int shift, int par_shift);
92// poly pOppose(ring Rop, poly p);
93// ideal idOppose(ring Rop, ideal I);
94
95// #else
96// /* dummy definition to make gcc happy */
97// #define nc_kBucketPolyRed(A,B,C) 0
98// #define nc_PolyPolyRed(A,B,C) 0
99
100// return: FALSE, if there exists i in ishift..r->N,
101//                 such that a->exp[i] > b->exp[i]
102//         TRUE, otherwise
103BOOLEAN p_DivisibleByRat(poly a, poly b, int ishift, const ring r);
104
105/*2
106*reduces h with elements from reducer choosing the best possible
107* element in t with respect to the given red_length
108* arrays reducer and red_length are [0..(rl-1)]
109*/
110int redRat (poly* h,poly *reducer, int *red_length,int rl, int ishift, ring r);
111#endif /* HAVE_PLURAL */
112#endif
Note: See TracBrowser for help on using the repository browser.