source: git/kernel/ideals.h @ e070895

spielwiese
Last change on this file since e070895 was e070895, checked in by Hans Schönemann <hannes@…>, 15 years ago
*hannes; idInsertPoly git-svn-id: file:///usr/local/Singular/svn/trunk@12160 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 5.3 KB
Line 
1#ifndef IDEALS_H
2#define IDEALS_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: ideals.h,v 1.15 2009-10-06 09:32:54 Singular Exp $ */
7/*
8* ABSTRACT - all basic methods to manipulate ideals
9*/
10#include "structs.h"
11
12#ifdef PDEBUG
13ideal idDBInit (int size, int rank, const char *f, int l);
14#define idInit(A,B) idDBInit(A,B,__FILE__,__LINE__)
15#else
16/*- creates an ideal -*/
17ideal idInit (int size, int rank=1);
18#endif
19/*- deletes an ideal -*/
20#define idDelete(h) id_Delete(h, currRing)
21void id_Delete (ideal* h, ring r);
22void id_ShallowDelete (ideal* h, ring r);
23/* Shows an ideal -- mainly for debugging */
24void idShow(const ideal id, const ring lmRing = currRing, const ring tailRing = currRing, const int debugPrint = 0);
25  /*- initialise an ideal -*/
26ideal idMaxIdeal (int deg);
27  /*- initialise the maximal ideal (at 0) -*/
28void idSkipZeroes (ideal ide);
29  /*gives an ideal the minimal possible size*/
30void idNorm(ideal id);
31void idDelMultiples(ideal id);
32void idDelEquals(ideal id);
33void idDelLmEquals(ideal id);
34void idDelDiv(ideal id);
35BOOLEAN idIsConstant(ideal id);
36
37#ifdef PDEBUG
38void idDBTest(ideal h1, int level, const char *f,const int l);
39#define idTest(A) idDBTest(A, PDEBUG, __FILE__,__LINE__)
40#define idPrint(id) idShow(id)
41#else
42#define idTest(A)  (TRUE)
43#define idPrint(A) ((void)0)
44#endif
45
46ideal id_Copy (ideal h1,const ring r);
47#ifdef PDEBUG
48ideal idDBCopy(ideal h1,const char *f,int l);
49#define idCopy(A) idDBCopy(A,__FILE__,__LINE__)
50#else
51#define idCopy(A) id_Copy(A,currRing)
52#endif
53  /*adds two ideals without simplifying the result*/
54ideal idSimpleAdd (ideal h1,ideal h2);
55  /*adds the quotient ideal*/
56ideal idAdd (ideal h1,ideal h2);
57  /* h1 + h2 */
58void idInsertPoly (ideal h1,poly h2);
59  /* h1 + h2 */
60ideal idMult (ideal h1,ideal h2);
61  /*hh := h1 * h2*/
62
63BOOLEAN idIs0 (ideal h);
64
65long idRankFreeModule(ideal m, ring lmRing, ring tailRing);
66inline long idRankFreeModule(ideal m, ring r = currRing)
67{return idRankFreeModule(m, r, r);}
68// returns TRUE, if idRankFreeModule(m) > 0
69BOOLEAN idIsModule(ideal m, ring r = currRing);
70BOOLEAN idHomIdeal (ideal id, ideal Q=NULL);
71BOOLEAN idHomModule(ideal m, ideal Q,intvec **w);
72BOOLEAN idTestHomModule(ideal m, ideal Q, intvec *w);
73
74ideal idMinBase (ideal h1);
75  /*returns a minimized set of generators of h1*/
76int pLowVar (poly p);
77  /*-the minimal index of used variables - 1-*/
78ideal idDehomogen (ideal id1,poly p,number n);
79  /*dehomogenized the generators of the ideal id1 with the leading
80  monomial of p replaced by n*/
81void pShift (poly * p,int i);
82  /*- verschiebt die Indizes der Modulerzeugenden um i -*/
83void    idInitChoise (int r,int beg,int end,BOOLEAN *endch,int * choise);
84void    idGetNextChoise (int r,int end,BOOLEAN *endch,int * choise);
85int     idGetNumberOfChoise(int t, int d, int begin, int end, int * choise);
86
87int     binom (int n,int r);
88
89ideal   idFreeModule (int i);
90
91ideal   idSect (ideal h1,ideal h2);
92ideal   idMultSect(resolvente arg, int length);
93
94//ideal   idSyzygies (ideal h1, tHomog h,intvec **w);
95ideal   idSyzygies (ideal h1, tHomog h,intvec **w, BOOLEAN setSyzComp=TRUE,
96                    BOOLEAN setRegularity=FALSE, int *deg = NULL);
97ideal   idLiftStd  (ideal h1, matrix *m, tHomog h=testHomog);
98
99ideal   idLift (ideal mod, ideal sumod,ideal * rest=NULL,
100             BOOLEAN goodShape=FALSE, BOOLEAN isSB=TRUE,BOOLEAN divide=FALSE,
101             matrix *unit=NULL);
102
103void idLiftW(ideal P,ideal Q,int n,matrix &T, ideal &R, short *w= NULL );
104
105intvec * idMWLift(ideal mod,intvec * weights);
106
107ideal   idQuot (ideal h1,ideal h2,
108                BOOLEAN h1IsStb=FALSE, BOOLEAN resultIsIdeal=FALSE);
109
110ideal   idPower(ideal gid,int deg);
111
112//ideal   idElimination (ideal h1,poly delVar);
113ideal   idElimination (ideal h1,poly delVar, intvec *hilb=NULL);
114
115poly idMinor(matrix a, int ar, unsigned long which, ideal R=NULL);
116
117ideal   idMinors(matrix a, int ar, ideal R=NULL);
118
119void   idCompactify(ideal id);
120
121ideal idMinEmbedding(ideal arg,BOOLEAN inPlace=FALSE, intvec **w=NULL);
122
123ideal   idHead(ideal h);
124
125ideal   idHomogen(ideal h, int varnum);
126
127BOOLEAN idIsSubModule(ideal id1,ideal id2);
128
129ideal   idVec2Ideal(poly vec);
130
131ideal   idMatrix2Module(matrix mat);
132
133matrix  idModule2Matrix(ideal mod);
134
135matrix  idModule2formatedMatrix(ideal mod,int rows, int cols);
136
137ideal   idSubst(ideal i, int n, poly e);
138
139ideal   idJet(ideal i,int d);
140ideal   idJetW(ideal i,int d, intvec * iv);
141int idMinDegW(ideal M,intvec *w);
142ideal   idSeries(int n,ideal M,matrix U=NULL,intvec *w=NULL);
143
144BOOLEAN idIsZeroDim(ideal i);
145matrix  idDiff(matrix i, int k);
146matrix  idDiffOp(ideal I, ideal J,BOOLEAN multiply=TRUE);
147
148intvec *idSort(ideal id,BOOLEAN nolex=TRUE);
149ideal   idModulo (ideal h1,ideal h2, tHomog h=testHomog, intvec ** w=NULL);
150int     idElem(const ideal F);
151matrix  idCoeffOfKBase(ideal arg, ideal kbase, poly how);
152// transpose a module
153ideal   idTransp(ideal a);
154// version of "ideal idTransp(ideal)" which works within a given ring.
155ideal id_Transp(ideal a, const ring rRing = currRing);
156
157
158intvec *idQHomWeight(ideal id);
159
160void    idNormalize(ideal id);
161
162ideal idXXX (ideal  h1, int k);
163
164poly id_GCD(poly f, poly g, const ring r);
165
166ideal idChineseRemainder(ideal *x, number *q, int rl);
167ideal idChineseRemainder(ideal *x, intvec *iv);
168
169
170ideal id_TensorModuleMult(const int m, const ideal M, const ring rRing = currRing); // image of certain map for BGG
171
172
173
174#endif
Note: See TracBrowser for help on using the repository browser.