Changeset 0047ec in git
- Timestamp:
- Jul 29, 2008, 9:39:57 AM (15 years ago)
- Branches:
- (u'spielwiese', '91e5db82acc17434e4062bcfa44e6efa7d41fd30')
- Children:
- d42b51540898000893023b8114f71bad09c3c7c2
- Parents:
- 4debf02efdbe8aa7eb872be69e638d78d3ffd3d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gr_kstd2.cc
r4debf02 r0047ec 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: gr_kstd2.cc,v 1. 19 2008-07-28 18:18:34Singular Exp $ */4 /* $Id: gr_kstd2.cc,v 1.20 2008-07-29 07:39:57 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: noncomm. alg. of Buchberger … … 198 198 int pass = 0; 199 199 int j = 0; 200 int c_j=-1, c_e=- 1;200 int c_j=-1, c_e=-2; 201 201 poly c_p=NULL; 202 202 assume(strat->tailRing==currRing); … … 256 256 pass++; 257 257 j=0; 258 c_j=-1; c_e=-2; 258 259 } 259 260 else … … 262 263 } 263 264 } 265 // first try usal division 266 if (p_LmDivisibleBy(strat->S[j],(*h).p,currRing)) 267 { 268 if(TEST_OPT_DEBUG) 269 { 270 p_wrp(h->p,currRing); Print(" divisibly by S[%d]=",j); 271 p_wrp(strat->S[j],currRing); PrintS(" e=-1\n"); 272 } 273 if ((c_j==-1)||(c_e>=0)) 274 { 275 c_e=-1; c_j=j; 276 pDelete(&c_p); 277 c_p = nc_CreateSpoly(pCopy(strat->S[c_j]),pCopy((*h).p), currRing); 278 } 279 } 280 else 264 281 if (p_LmDivisibleByPart(strat->S[j],(*h).p,currRing, 265 282 currRing->real_var_start,currRing->real_var_end)) … … 1019 1036 nc_gr_initBba(F,strat); 1020 1037 initBuchMoraPos(strat); 1038 if (currRing->real_var_start>0) 1039 { 1040 strat->posInL=posInL0; // by pCmp of lcm 1041 } 1021 1042 /*set enterS, spSpolyShort, reduce, red, initEcart, initEcartPair*/ 1022 1043 /*Shdl=*/initBuchMora(F, Q,strat); 1023 1044 strat->posInT=posInT110; 1024 if (currRing->real_var_start>0)1025 {1026 strat->posInL=posInL0; // by pCmp of lcm1027 }1028 1045 srmax = strat->sl; 1029 1046 reduc = olddeg = lrmax = 0;
Note: See TracChangeset
for help on using the changeset viewer.