source: git/Singular/ideals.h @ 6ae4f5

spielwiese
Last change on this file since 6ae4f5 was 6ae4f5, checked in by Hans Schönemann <hannes@…>, 27 years ago
* hannes: - corrected scanner.l: parsing of strings in blocks: if (1) { write("","}"); } - corrected ipassign.cc: assignment of "dummy" types: DEF, NONE - corrected sleftv::Print(_), initialisation of _ - added conversion int->def - added CopyD(DEF) - in insert(..): object should not be of type NONE (lists.cc:lInsert0) - added int*intvec, int*intmat to iparith.cc git-svn-id: file:///usr/local/Singular/svn/trunk@145 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.6 KB
Line 
1#ifndef IDEALS_H
2#define IDEALS_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: ideals.h,v 1.3 1997-04-09 12:19:44 Singular Exp $ */
7/*
8* ABSTRACT - all basic methods to manipulate ideals
9*/
10#include "structs.h"
11
12#ifdef MDEBUG
13ideal idDBInit (int size, int rank, char *f, int l);
14#define idInit(A,B) idDBInit(A,B,__FILE__,__LINE__)
15#else
16ideal idInit (int size, int rank=1);
17#endif
18  /*- initialise an ideal -*/
19ideal idMaxIdeal (int deg);
20  /*- initialise the maximal ideal (at 0) -*/
21void idDelete (ideal* h);
22  /*- deletes an ideal -*/
23void idSkipZeroes (ideal ide);
24  /*gives an ideal the minimal possible size*/
25void idNorm(ideal id);
26void idDelMultiples(ideal id);
27void idDelEquals(ideal id);
28
29#ifdef PDEBUG
30void idDBTest(ideal h1,char *f,int l);
31#define idTest(A) idDBTest(A,__FILE__,__LINE__)
32#else
33#define idTest(A)
34#endif
35
36#ifdef MDEBUG
37ideal idDBCopy(ideal h1,char *f,int l);
38#define idCopy(A) idDBCopy(A,__FILE__,__LINE__)
39#else
40ideal idCopy (ideal h1);
41#endif
42  /*adds two ideals without simplifying the result*/
43ideal idSimpleAdd (ideal h1,ideal h2);
44  /*adds the quotient ideal*/
45ideal idAdd (ideal h1,ideal h2);
46  /* h1 + h2 */
47ideal idMult (ideal h1,ideal h2);
48  /*hh := h1 * h2*/
49
50BOOLEAN idIs0 (ideal h);
51
52int     idRankFreeModule(ideal m);
53
54BOOLEAN idHomIdeal (ideal id, ideal Q=NULL);
55BOOLEAN idHomModule(ideal m, ideal Q,intvec **w);
56
57ideal idMinBase (ideal h1);
58  /*returns a minimized set of generators of h1*/
59int pLowVar (poly p);
60  /*-the minimal index of used variables - 1-*/
61ideal idDehomogen (ideal id1,poly p,number n);
62  /*dehomogenized the generators of the ideal id1 with the leading
63  monomial of p replaced by n*/
64void pShift (poly * p,int i);
65  /*- verschiebt die Indizes der Modulerzeugenden um i -*/
66void    idInitChoise (int r,int beg,int end,BOOLEAN *endch,int * choise);
67void    idGetNextChoise (int r,int end,BOOLEAN *endch,int * choise);
68int     idGetNumberOfChoise(int t, int d, int begin, int end, int * choise);
69
70int     binom (int n,int r);
71
72ideal   idFreeModule (int i);
73
74ideal   idSect (ideal h1,ideal h2);
75ideal   idMultSect(resolvente arg, int length);
76
77ideal   idSyzygies (ideal h1,ideal quot, tHomog h,intvec **w);
78ideal   idSyzygies (ideal h1,ideal quot, tHomog h,intvec **w,
79           BOOLEAN setRegularity, int &deg);
80ideal idSyzMin (ideal h1,ideal  quot, tHomog h,intvec **w,
81           BOOLEAN setRegularity, int &deg);
82ideal   idLiftStd  (ideal h1, ideal quot, matrix *m, tHomog h=testHomog);
83
84ideal   idLift (ideal mod, ideal sumod);
85ideal   idLiftNonStB (ideal  mod, ideal submod);
86
87intvec * idMWLift(ideal mod,intvec * weights);
88
89ideal   idQuot (ideal h1,ideal h2,BOOLEAN h1IsStb=FALSE);
90
91ideal   idPower(ideal gid,int deg);
92
93//ideal   idElimination (ideal h1,poly delVar);
94ideal   idElimination (ideal h1,poly delVar, intvec *hilb=NULL);
95
96ideal   idMinors(matrix a, int ar);
97
98ideal   idCompactify(ideal id);
99
100ideal   idMinEmbedding(ideal arg);
101
102ideal   idHead(ideal h);
103
104ideal   idHomogen(ideal h, int varnum);
105
106BOOLEAN idIsSubModule(ideal id1,ideal id2);
107
108ideal   idVec2Ideal(poly vec);
109
110ideal   idMatrix2Module(matrix mat);
111
112matrix  idModule2Matrix(ideal mod);
113
114matrix  idModule2formatedMatrix(ideal mod,int rows, int cols);
115
116ideal   idSubst(ideal i, int n, poly e);
117
118ideal   idJet(ideal i,int d);
119ideal   idJetW(ideal i,int d, intvec * iv);
120
121matrix  idDiff(matrix i, int k);
122matrix  idDiffOp(ideal I, ideal J,BOOLEAN multiply=TRUE);
123
124intvec *idSort(ideal id,BOOLEAN nolex=TRUE);
125ideal   idModulo (ideal h1,ideal h2);
126int     idElem(ideal F);
127matrix  idCoeffOfKBase(ideal arg, ideal kbase, poly how);
128intvec *idQHomWeights(ideal id);
129#endif
Note: See TracBrowser for help on using the repository browser.