Changeset 5c0183 in git
- Timestamp:
- Feb 17, 2012, 4:44:11 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- e4f491963f9660b7e75c9817b20efcc8c5fae6fa
- Parents:
- 98c9729eb3e7d8dbe8cbfa1932442589173c8270
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-17 16:44:11+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-23 20:35:10+01:00
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dyn_modules/syzextra/mod_main.cc
r98c972 r5c0183 111 111 { 112 112 const ring r = (const ring)h->Data(); 113 rWrite(r );113 rWrite(r, TRUE); 114 114 PrintLn(); 115 115 #ifdef RDEBUG … … 681 681 const int posIS = rGetISPos(0, r); 682 682 683 if( (!isSyz) && (-1 == posIS) )684 {685 WerrorS("`idPrepare(<...>)` called on incompatible ring (not created by 'MakeSyzCompOrdering' or 'MakeInducedSchreyerOrdering'!)");686 return TRUE;687 }688 683 689 684 if ( !( (h!=NULL) && (h->Typ()==MODUL_CMD) && (h->Data() != NULL) ) ) … … 706 701 } else 707 702 { 703 if( (!isSyz) && (-1 == posIS) ) 704 { 705 WerrorS("`idPrepare(<...>)` called on incompatible ring (not created by 'MakeSyzCompOrdering' or 'MakeInducedSchreyerOrdering'!)"); 706 return TRUE; 707 } 708 708 709 if( isSyz ) 709 710 iComp = rGetCurrSyzLimit(r); … … 711 712 iComp = id_RankFreeModule(r->typ[posIS].data.is.F, r); // ; 712 713 } 714 715 assume(iComp >= 0); 713 716 714 717 -
libpolys/polys/monomials/p_polys.cc
r98c972 r5c0183 227 227 #ifndef NDEBUG 228 228 #if MYTEST 229 Print("p_Setm_General: isTemp ord: pos: %d, p: ", pos); p_DebugPrint(p, r, r, 1);229 Print("p_Setm_General: ro_isTemp ord: pos: %d, p: ", pos); p_DebugPrint(p, r, r, 1); 230 230 #endif 231 231 #endif … … 264 264 #if MYTEST 265 265 // if( p->exp[o->data.isTemp.start] > 0 ) 266 // { 267 // PrintS("Initial Value: "); p_DebugPrint(p, r, r, 1); 268 // } 266 PrintS("after Values: "); p_DebugPrint(p, r, r, 1); 269 267 #endif 270 268 #endif … … 288 286 const ideal F = o->data.is.F; 289 287 const int limit = o->data.is.limit; 288 const int start = o->data.is.start; 289 290 290 291 291 if( F != NULL && c > limit ) … … 294 294 #if MYTEST 295 295 Print("p_Setm_General: ro_is : in rSetm: pos: %d, c: %d > limit: %d\n", c, pos, limit); // p_DebugPrint(p, r, r, 1); 296 PrintS("preComputed Values: "); 297 p_DebugPrint(p, r, r, 1); 296 298 #endif 297 299 #endif … … 316 318 if(pp == NULL) break; 317 319 318 const int start = o->data.is.start;319 320 const int end = o->data.is.end; 320 321 … … 326 327 // const int st = o->data.isTemp.start; 327 328 328 if( c > limit ) 329 // if( c > limit ) // BUG??? 329 330 p->exp[start] = 1; 330 331 // else 331 332 // p->exp[start] = 0; 332 333 333 334 334 335 #ifndef NDEBUG 335 336 Print("p_Setm_General: is(-Temp-) :: c: %d, limit: %d, [st:%d] ===>>> %ld\n", c, limit, start, p->exp[start]); 336 337 #endif 337 338 339 // p_ExpVectorAdd(p, pp, r); 338 340 339 341 for( int i = start; i <= end; i++) // v[0] may be here... 340 342 p->exp[i] += pp->exp[i]; // !!!!!!!! ADD corresponding LT(F) 341 343 342 343 344 344 // p_MemAddAdjust(p, ri); 345 if (r->NegWeightL_Offset != NULL) 346 { 347 for (int i=r->NegWeightL_Size-1; i>=0; i--) 348 { 349 const int _i = r->NegWeightL_Offset[i]; 350 if( start <= _i && _i <= end ) 351 p->exp[_i] -= POLY_NEGWEIGHT_OFFSET; 352 } 353 } 354 355 345 356 #ifndef NDEBUG 346 357 const int* const pVarOffset = o->data.is.pVarOffset; … … 356 367 } 357 368 // TODO: how to check this for computed values??? 369 #if MYTEST 370 PrintS("Computed Values: "); p_DebugPrint(p, r, r, 1); 371 #endif 358 372 #endif 359 373 } else 360 374 { 375 p->exp[start] = 0; //!!!!????? where????? 376 361 377 const int* const pVarOffset = o->data.is.pVarOffset; 362 378 … … 370 386 #ifndef NDEBUG 371 387 #if MYTEST 372 Print("p_Setm_General: ro_is :: c: %d <= limit: %d, vo: %d, exp: %d\n", c, limit, vo, p->exp[vo]);388 Print("ELSE p_Setm_General: ro_is :: c: %d <= limit: %d, vo: %d, exp: %d\n", c, limit, vo, p->exp[vo]); 373 389 p_DebugPrint(p, r, r, 1); 374 #endif 375 #endif 390 #endif 391 #endif 376 392 } 377 378 393 379 394 break;
Note: See TracChangeset
for help on using the changeset viewer.