source: git/Singular/ideals.h @ 64eef3

fieker-DuValspielwiese
Last change on this file since 64eef3 was 568bc8, checked in by Hans Schönemann <hannes@…>, 24 years ago
hannes:test:extra-std command git-svn-id: file:///usr/local/Singular/svn/trunk@4529 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 4.0 KB
Line 
1#ifndef IDEALS_H
2#define IDEALS_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: ideals.h,v 1.24 2000-08-14 14:35:50 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__)
15void idDBDelete (ideal* h, char *f, int l);
16#define idDelete(A) idDBDelete(A,__FILE__,__LINE__)
17#else
18ideal idInit (int size, int rank=1);
19  /*- creates an ideal -*/
20void idDelete (ideal* h);
21  /*- deletes an ideal -*/
22#endif
23void idShow(ideal id);
24  /*- initialise an ideal -*/
25ideal idMaxIdeal (int deg);
26  /*- initialise the maximal ideal (at 0) -*/
27void idSkipZeroes (ideal ide);
28  /*gives an ideal the minimal possible size*/
29void idNorm(ideal id);
30void idDelMultiples(ideal id);
31void idDelEquals(ideal id);
32void idDelLmEquals(ideal id);
33void idDelDiv(ideal id);
34BOOLEAN idIsConstant(ideal id);
35
36#ifdef PDEBUG
37void idDBTest(ideal h1,char *f,int l);
38#define idTest(A) idDBTest(A,__FILE__,__LINE__)
39#define idPrint(id) idShow(id)
40#else
41#define idTest(A)  (TRUE)
42#define idPrint(A) ((void)0)
43#endif
44
45#ifdef PDEBUG
46ideal idDBCopy(ideal h1,char *f,int l);
47#define idCopy(A) idDBCopy(A,__FILE__,__LINE__)
48#else
49ideal idCopy (ideal h1);
50#endif
51  /*adds two ideals without simplifying the result*/
52ideal idSimpleAdd (ideal h1,ideal h2);
53  /*adds the quotient ideal*/
54ideal idAdd (ideal h1,ideal h2);
55  /* h1 + h2 */
56ideal idMult (ideal h1,ideal h2);
57  /*hh := h1 * h2*/
58
59BOOLEAN idIs0 (ideal h);
60
61int     idRankFreeModule(ideal m);
62
63BOOLEAN idHomIdeal (ideal id, ideal Q=NULL);
64BOOLEAN idHomModule(ideal m, ideal Q,intvec **w);
65
66ideal idMinBase (ideal h1);
67  /*returns a minimized set of generators of h1*/
68int pLowVar (poly p);
69  /*-the minimal index of used variables - 1-*/
70ideal idDehomogen (ideal id1,poly p,number n);
71  /*dehomogenized the generators of the ideal id1 with the leading
72  monomial of p replaced by n*/
73void pShift (poly * p,int i);
74  /*- verschiebt die Indizes der Modulerzeugenden um i -*/
75void    idInitChoise (int r,int beg,int end,BOOLEAN *endch,int * choise);
76void    idGetNextChoise (int r,int end,BOOLEAN *endch,int * choise);
77int     idGetNumberOfChoise(int t, int d, int begin, int end, int * choise);
78
79int     binom (int n,int r);
80
81ideal   idFreeModule (int i);
82
83ideal   idSect (ideal h1,ideal h2);
84ideal   idMultSect(resolvente arg, int length);
85
86//ideal   idSyzygies (ideal h1, tHomog h,intvec **w);
87ideal   idSyzygies (ideal h1, tHomog h,intvec **w, BOOLEAN setSyzComp=TRUE,
88                    BOOLEAN setRegularity=FALSE, int *deg = NULL);
89ideal   idLiftStd  (ideal h1, matrix *m, tHomog h=testHomog);
90
91ideal   idLift (ideal mod, ideal sumod,ideal * rest=NULL,
92             BOOLEAN goodShape=FALSE, BOOLEAN isSB=TRUE,BOOLEAN divide=FALSE,
93             matrix *unit=NULL);
94
95intvec * idMWLift(ideal mod,intvec * weights);
96
97ideal   idQuot (ideal h1,ideal h2,
98                BOOLEAN h1IsStb=FALSE, BOOLEAN resultIsIdeal=FALSE);
99
100ideal   idPower(ideal gid,int deg);
101
102//ideal   idElimination (ideal h1,poly delVar);
103ideal   idElimination (ideal h1,poly delVar, intvec *hilb=NULL);
104
105ideal   idMinors(matrix a, int ar, ideal R=NULL);
106
107ideal   idCompactify(ideal id);
108
109ideal idMinEmbedding(ideal arg,BOOLEAN inPlace=FALSE);
110
111ideal   idHead(ideal h);
112
113ideal   idHomogen(ideal h, int varnum);
114
115BOOLEAN idIsSubModule(ideal id1,ideal id2);
116
117ideal   idVec2Ideal(poly vec);
118
119ideal   idMatrix2Module(matrix mat);
120
121matrix  idModule2Matrix(ideal mod);
122
123matrix  idModule2formatedMatrix(ideal mod,int rows, int cols);
124
125ideal   idSubst(ideal i, int n, poly e);
126
127ideal   idJet(ideal i,int d);
128ideal   idJetW(ideal i,int d, intvec * iv);
129
130matrix  idDiff(matrix i, int k);
131matrix  idDiffOp(ideal I, ideal J,BOOLEAN multiply=TRUE);
132
133intvec *idSort(ideal id,BOOLEAN nolex=TRUE);
134ideal   idModulo (ideal h1,ideal h2);
135int     idElem(ideal F);
136matrix  idCoeffOfKBase(ideal arg, ideal kbase, poly how);
137intvec *idQHomWeights(ideal id);
138ideal   idTransp(ideal a);
139
140
141ideal idXXX (ideal  h1, int k);
142#endif
Note: See TracBrowser for help on using the repository browser.