source: git/kernel/kstd1.h @ 232bbd5

spielwiese
Last change on this file since 232bbd5 was 64f0ca, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
proper hack for SCA fix: SCA test + initialization fix: GB over a SCA add: "ring-dependent" wrapper of kNF (for SCA test)
  • Property mode set to 100644
File size: 2.6 KB
Line 
1#ifndef KSTD1_H
2#define KSTD1_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id$ */
7/*
8* ABSTRACT
9*/
10#include <kernel/structs.h>
11#include <polys/monomials/ring.h>
12
13ideal mora (ideal F, ideal Q,intvec *w,intvec *hilb,kStrategy strat);
14
15// lazy_reduce flags: can be combined by |
16#define KSTD_NF_LAZY   1
17  // do only a reduction of the leading term
18#define KSTD_NF_ECART  2
19  // only local: recude even with bad ecart
20#define KSTD_NF_NONORM 4
21  // only global: avoid normalization, return a multiply of NF
22
23poly kNF1(ideal F, ideal Q, poly q, kStrategy strat, int lazyReduce);
24ideal kNF1 (ideal F,ideal Q,ideal q, kStrategy strat, int lazyReduce);
25
26poly kNF (ideal F, ideal Q, poly p,int syzComp=0, int lazyReduce=0);
27ideal kNF(ideal F, ideal Q, ideal p,int syzComp=0, int lazyReduce=0);
28
29/// NOTE: this is just a wrapper which sets currRing for the actual kNF call
30poly kNF (ideal F, ideal Q, poly p,int syzComp, int lazyReduce, const ring _currRing);
31
32ideal kStd(ideal F, ideal Q, tHomog h, intvec ** mw,intvec *hilb=NULL,
33          int syzComp=0,int newIdeal=0, intvec *vw=NULL);
34
35ideal kStdShift(ideal F, ideal Q, tHomog h,intvec ** w, intvec *hilb,int syzComp,
36                int newIdeal, intvec *vw, int uptodeg, int lVblock);
37
38/* the following global data are defined in kutil.cc */
39//extern int syzComp;
40  /*stop building pairs after that component --> ideals.cc, syz.cc */
41extern int LazyPass,LazyDegree,Kstd1_mu,Kstd1_deg;
42  /*parameters for Lazy or global stops --> ipshell.cc, grammar.y*/
43extern BITSET kOptions;
44  /*the known test options (a constant)*/
45extern BITSET validOpts;
46
47void initMora(ideal F,kStrategy strat);
48
49ideal kInterRed (ideal F, ideal Q=NULL);
50ideal kInterRedOld (ideal F, ideal Q=NULL);
51long   kModDeg(poly p, ring r = currRing);
52long  kHomModDeg(poly p, ring r = currRing);
53
54ideal stdred(ideal F, ideal Q, tHomog h,intvec ** w);
55
56ideal kMin_std(ideal F, ideal Q, tHomog h,intvec ** w, ideal &M,
57              intvec *hilb=NULL, int syzComp=0,int reduced=0);
58
59
60extern intvec * kModW;
61extern intvec * kHomW;
62
63
64/* options:
650 prot
661 redSB
672 notBucket
683 notSugar
694 interrupt
705 sugarCrit
716 teach
727 cancel unit: obachman 11/00 tossed
738 morepairs: obachman 11/00: tossed
749 return SB (syz,quotient,intersect)
7510 fastHC
7611-19 sort in L/T
7720 redBest: obachman 11/00 tossed
78
7922 staircaseBound: in NF create a HC x1^degBound+1
8023 multBound
8124 degBound
8225 no redTail(p)/redTail(s)
8326 integer strategy
8427 stop at HC (finiteDeterminacyTest)
8528 infRedTail: ignore ecart in local redTail-calls
8629 kStd + 1 new element
8730 noRedSyz
8831 weight
89verbose:31 stop at certain weights
90*/
91
92#endif
93
Note: See TracBrowser for help on using the repository browser.