Changeset a725dae in git for kernel/kstd2.cc
- Timestamp:
- Jan 22, 2006, 5:29:37 AM (18 years ago)
- Branches:
- (u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
- Children:
- 76a71142ba90e62cb5e72eedf1029c5f98235e46
- Parents:
- 7f06ccaffa6e5a520078549a3e37d7d51d338274
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kstd2.cc
r7f06cca ra725dae 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd2.cc,v 1. 8 2006-01-20 01:15:07 wienand Exp $ */4 /* $Id: kstd2.cc,v 1.9 2006-01-22 04:29:37 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: alg. of Buchberger … … 164 164 */ 165 165 166 /* now in kutil.cc 166 167 long twoPow(long arg) { 167 168 long t = arg; … … 173 174 return result; 174 175 } 176 */ 175 177 176 178 long factorial(long arg) … … 242 244 tmp2 = p_ISet((long) pGetCoeff(zeroPoly), leadRing); 243 245 for (int i = 1; i <= leadRing->N; i++) { 244 pSetExp(tmp2, i, p_GetExp(zeroPoly, i, leadRing));246 pSetExp(tmp2, i, p_GetExp(zeroPoly, i, tailRing)); 245 247 } 246 248 p_Setm(tmp2, leadRing); … … 269 271 tmp2 = p_ISet((long) pGetCoeff(zeroPoly), leadRing); 270 272 for (int i = 1; i <= leadRing->N; i++) { 271 pSetExp(tmp2, i, p_GetExp(zeroPoly, i, leadRing));273 pSetExp(tmp2, i, p_GetExp(zeroPoly, i, tailRing)); 272 274 } 273 275 p_Setm(tmp2, leadRing); … … 311 313 //#endif 312 314 313 h->SetShortExpVector(); 315 h->SetShortExpVector(); 314 316 loop 315 317 { 316 zeroPoly = NULL;//kFindDivisibleByZeroPoly(h);318 zeroPoly = kFindDivisibleByZeroPoly(h); 317 319 if (zeroPoly != NULL) 318 320 { 321 if (TEST_OPT_PROT) 322 { 323 PrintS("z"); 324 } 319 325 #ifdef KDEBUG 320 326 if (TEST_OPT_DEBUG) … … 331 337 tmp_h.sev = pGetShortExpVector(tmp_h.p); 332 338 tmp_h.SetpFDeg(); 339 /* if (TEST_OPT_PROT) 340 { 341 tstcount ++; 342 if (tstcount > 49) 343 { 344 PrintLn(); 345 p_wrp(zeroPoly,currRing); 346 PrintLn(); 347 tstcount = 0; 348 } 349 } */ 333 350 334 351 enterT(tmp_h, strat, strat->tl + 1);
Note: See TracChangeset
for help on using the changeset viewer.