source: git/kernel/ideals.h @ 3c6379

fieker-DuValspielwiese
Last change on this file since 3c6379 was 30b8381, checked in by Hans Schönemann <hannes@…>, 20 years ago
*hannes: betti and weights (from 2-0-5) git-svn-id: file:///usr/local/Singular/svn/trunk@7267 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 4.6 KB
Line 
1#ifndef IDEALS_H
2#define IDEALS_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: ideals.h,v 1.2 2004-07-16 08:43:00 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, 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(ideal id);
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, char *f,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
46#ifdef PDEBUG
47ideal idDBCopy(ideal h1,char *f,int l);
48#define idCopy(A) idDBCopy(A,__FILE__,__LINE__)
49#else
50ideal idCopy (ideal h1);
51#endif
52  /*adds two ideals without simplifying the result*/
53ideal idSimpleAdd (ideal h1,ideal h2);
54  /*adds the quotient ideal*/
55ideal idAdd (ideal h1,ideal h2);
56  /* h1 + h2 */
57ideal idMult (ideal h1,ideal h2);
58  /*hh := h1 * h2*/
59
60BOOLEAN idIs0 (ideal h);
61
62long idRankFreeModule(ideal m, ring lmRing, ring tailRing);
63inline long idRankFreeModule(ideal m, ring r = currRing)
64{return idRankFreeModule(m, r, r);}
65// returns TRUE, if idRankFreeModule(m) > 0
66BOOLEAN idIsModule(ideal m, ring r = currRing);
67BOOLEAN idHomIdeal (ideal id, ideal Q=NULL);
68BOOLEAN idHomModule(ideal m, ideal Q,intvec **w);
69BOOLEAN idTestHomModule(ideal m, ideal Q, intvec *w);
70
71ideal idMinBase (ideal h1);
72  /*returns a minimized set of generators of h1*/
73int pLowVar (poly p);
74  /*-the minimal index of used variables - 1-*/
75ideal idDehomogen (ideal id1,poly p,number n);
76  /*dehomogenized the generators of the ideal id1 with the leading
77  monomial of p replaced by n*/
78void pShift (poly * p,int i);
79  /*- verschiebt die Indizes der Modulerzeugenden um i -*/
80void    idInitChoise (int r,int beg,int end,BOOLEAN *endch,int * choise);
81void    idGetNextChoise (int r,int end,BOOLEAN *endch,int * choise);
82int     idGetNumberOfChoise(int t, int d, int begin, int end, int * choise);
83
84int     binom (int n,int r);
85
86ideal   idFreeModule (int i);
87
88ideal   idSect (ideal h1,ideal h2);
89ideal   idMultSect(resolvente arg, int length);
90
91//ideal   idSyzygies (ideal h1, tHomog h,intvec **w);
92ideal   idSyzygies (ideal h1, tHomog h,intvec **w, BOOLEAN setSyzComp=TRUE,
93                    BOOLEAN setRegularity=FALSE, int *deg = NULL);
94ideal   idLiftStd  (ideal h1, matrix *m, tHomog h=testHomog);
95
96ideal   idLift (ideal mod, ideal sumod,ideal * rest=NULL,
97             BOOLEAN goodShape=FALSE, BOOLEAN isSB=TRUE,BOOLEAN divide=FALSE,
98             matrix *unit=NULL);
99
100void idLiftW(ideal P,ideal Q,int n,matrix &T, ideal &R, short *w= NULL );
101
102intvec * idMWLift(ideal mod,intvec * weights);
103
104ideal   idQuot (ideal h1,ideal h2,
105                BOOLEAN h1IsStb=FALSE, BOOLEAN resultIsIdeal=FALSE);
106
107ideal   idPower(ideal gid,int deg);
108
109//ideal   idElimination (ideal h1,poly delVar);
110ideal   idElimination (ideal h1,poly delVar, intvec *hilb=NULL);
111
112ideal   idMinors(matrix a, int ar, ideal R=NULL);
113
114ideal   idCompactify(ideal id);
115
116ideal idMinEmbedding(ideal arg,BOOLEAN inPlace=FALSE);
117
118ideal   idHead(ideal h);
119
120ideal   idHomogen(ideal h, int varnum);
121
122BOOLEAN idIsSubModule(ideal id1,ideal id2);
123
124ideal   idVec2Ideal(poly vec);
125
126ideal   idMatrix2Module(matrix mat);
127
128matrix  idModule2Matrix(ideal mod);
129
130matrix  idModule2formatedMatrix(ideal mod,int rows, int cols);
131
132ideal   idSubst(ideal i, int n, poly e);
133
134ideal   idJet(ideal i,int d);
135ideal   idJetW(ideal i,int d, intvec * iv);
136int idMinDegW(ideal M,intvec *w);
137ideal   idSeries(int n,ideal M,matrix U=NULL,intvec *w=NULL);
138
139BOOLEAN idIsZeroDim(ideal i);
140matrix  idDiff(matrix i, int k);
141matrix  idDiffOp(ideal I, ideal J,BOOLEAN multiply=TRUE);
142
143intvec *idSort(ideal id,BOOLEAN nolex=TRUE);
144ideal   idModulo (ideal h1,ideal h2);
145int     idElem(ideal F);
146matrix  idCoeffOfKBase(ideal arg, ideal kbase, poly how);
147ideal   idTransp(ideal a);
148
149intvec *idQHomWeight(ideal id);
150
151void    idNormalize(ideal id);
152
153ideal idXXX (ideal  h1, int k);
154#endif
Note: See TracBrowser for help on using the repository browser.