Changeset 526e40d in git
- Timestamp:
- Apr 11, 2011, 3:22:53 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 16733868763266ec04dae72db238bced32663735
- Parents:
- e1375d3317dc56c03a4c242a459ec4e46e17f1cd
- git-author:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-04-11 13:22:53+00:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-04-11 13:22:53+00:00
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Makefile.in
re1375d r526e40d 221 221 MinorInterface.cc \ 222 222 bigintm.cc pyobject_setup.cc \ 223 bbcone.cc bbfan.cc 223 bbcone.cc bbfan.cc denom_list.cc 224 224 225 225 # stuff for MP -
Singular/extra.cc
re1375d r526e40d 3723 3723 else 3724 3724 #endif 3725 if (strcmp(sys_cmd,"denom_list")==0) 3726 { 3727 res->rtyp=LIST_CMD; 3728 extern lists get_denom_list(); 3729 res->data=(lists)get_denom_list(); 3730 return FALSE; 3731 } 3725 3732 /*==================== Error =================*/ 3726 3733 Werror( "(extended) system(\"%s\",...) %s", sys_cmd, feNotImplemented ); -
kernel/kInline.cc
re1375d r526e40d 19 19 #include <kernel/kbuckets.h> 20 20 #include <omalloc/omalloc.h> 21 #include <kernel/options.h> 21 22 22 23 #define HAVE_TAIL_BIN … … 423 424 { 424 425 assume(p != NULL); 425 if (t_p != NULL) 426 { 427 p_Cleardenom(t_p, tailRing); 428 pSetCoeff0(p, pGetCoeff(t_p)); 429 } 430 else 431 { 432 #ifdef HAVE_RATGRING 433 p= p_Cleardenom(p, currRing); 434 #else 435 p_Cleardenom(p, currRing); 436 #endif 437 } 426 if (TEST_OPT_CONTENTSB) 427 { 428 number n; 429 if (t_p != NULL) 430 { 431 p_Cleardenom_n(t_p, tailRing, n); 432 pSetCoeff0(p, pGetCoeff(t_p)); 433 } 434 else 435 { 436 #ifdef HAVE_RATGRING 437 p= p_Cleardenom_n(p, currRing, n); 438 #else 439 p_Cleardenom_n(p, currRing, n); 440 #endif 441 } 442 if (!nIsOne(n)) 443 { 444 denominator_list denom=(denominator_list)omAlloc(sizeof(denominator_list_s)); 445 denom->n=nInvers(n); 446 denom->next=DENOMINATOR_LIST; 447 DENOMINATOR_LIST=denom; 448 } 449 nDelete(&n); 450 } 451 else 452 { 453 if (t_p != NULL) 454 { 455 p_Cleardenom(t_p, tailRing); 456 pSetCoeff0(p, pGetCoeff(t_p)); 457 } 458 else 459 { 460 #ifdef HAVE_RATGRING 461 p= p_Cleardenom(p, currRing); 462 #else 463 p_Cleardenom(p, currRing); 464 #endif 465 } 466 } 438 467 } 439 468 -
kernel/kutil.cc
re1375d r526e40d 70 70 #define KDEBUG 2 71 71 #endif 72 73 denominator_list DENOMINATOR_LIST=NULL; 72 74 73 75 … … 5399 5401 if (TEST_OPT_INTSTRATEGY) 5400 5402 { 5401 //pContent(strat->S[i]); 5402 strat->S[i]=p_Cleardenom(strat->S[i], currRing);// also does a pContent 5403 if (TEST_OPT_CONTENTSB) 5404 { 5405 number n; 5406 p_Cleardenom_n(strat->S[i], currRing, n);// also does a pContent 5407 if (!nIsOne(n)) 5408 { 5409 denominator_list denom=(denominator_list)omAlloc(sizeof(denominator_list_s)); 5410 denom->n=nInvers(n); 5411 denom->next=DENOMINATOR_LIST; 5412 DENOMINATOR_LIST=denom; 5413 } 5414 nDelete(&n); 5415 } 5416 else 5417 { 5418 //pContent(strat->S[i]); 5419 strat->S[i]=p_Cleardenom(strat->S[i], currRing);// also does a pContent 5420 } 5403 5421 } 5404 5422 else … … 5470 5488 if (TEST_OPT_INTSTRATEGY) 5471 5489 { 5472 strat->S[i]=p_Cleardenom(strat->S[i], currRing);// also does a pContent 5490 if (TEST_OPT_CONTENTSB) 5491 { 5492 number n; 5493 p_Cleardenom_n(strat->S[i], currRing, n);// also does a pContent 5494 if (!nIsOne(n)) 5495 { 5496 denominator_list denom=(denominator_list)omAlloc(sizeof(denominator_list_s)); 5497 denom->n=nInvers(n); 5498 denom->next=DENOMINATOR_LIST; 5499 DENOMINATOR_LIST=denom; 5500 } 5501 nDelete(&n); 5502 } 5503 else 5504 { 5505 //pContent(strat->S[i]); 5506 strat->S[i]=p_Cleardenom(strat->S[i], currRing);// also does a pContent 5507 } 5473 5508 } 5474 5509 else … … 6121 6156 strat->S[i] = redtail(strat->S[i], strat->sl, strat); 6122 6157 if (TEST_OPT_INTSTRATEGY) 6123 strat->S[i]=p_Cleardenom(strat->S[i], currRing); 6158 { 6159 if (TEST_OPT_CONTENTSB) 6160 { 6161 number n; 6162 p_Cleardenom_n(strat->S[i], currRing, n);// also does a pContent 6163 if (!nIsOne(n)) 6164 { 6165 denominator_list denom=(denominator_list)omAlloc(sizeof(denominator_list_s)); 6166 denom->n=nInvers(n); 6167 denom->next=DENOMINATOR_LIST; 6168 DENOMINATOR_LIST=denom; 6169 } 6170 nDelete(&n); 6171 } 6172 else 6173 { 6174 //pContent(strat->S[i]); 6175 strat->S[i]=p_Cleardenom(strat->S[i], currRing);// also does a pContent 6176 } 6177 } 6124 6178 } 6125 6179 if (TEST_OPT_PROT) -
kernel/kutil.h
re1375d r526e40d 55 55 typedef TObject * TSet; 56 56 typedef LObject * LSet; 57 58 typedef struct denominator_list_s denominator_list_s; 59 typedef denominator_list_s *denominator_list; 60 61 struct denominator_list_s{number n; denominator_list next;}; 62 extern denominator_list DENOMINATOR_LIST; 57 63 58 64 class sTObject -
kernel/polys1.cc
re1375d r526e40d 515 515 poly p; 516 516 517 if(TEST_OPT_CONTENTSB) return;517 // if(TEST_OPT_CONTENTSB) return; 518 518 if(pNext(ph)==NULL) 519 519 { … … 657 657 void pSimpleContent(poly ph,int smax) 658 658 { 659 if(TEST_OPT_CONTENTSB) return;659 //if(TEST_OPT_CONTENTSB) return; 660 660 if (ph==NULL) return; 661 661 if (pNext(ph)==NULL) … … 714 714 #if 0 715 715 { 716 assume(!TEST_OPT_CONTENTSB);716 //assume(!TEST_OPT_CONTENTSB); 717 717 assume(ph!=NULL); 718 718 assume(pNext(ph)!=NULL); … … 966 966 if(pNext(p)==NULL) 967 967 { 968 /* 968 969 if (TEST_OPT_CONTENTSB) 969 970 { … … 978 979 } 979 980 else 981 */ 980 982 pSetCoeff(p,nInit(1)); 981 983 }
Note: See TracChangeset
for help on using the changeset viewer.