Changeset a28e0e9 in git
- Timestamp:
- Feb 17, 1998, 6:53:02 PM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d35355106936f47026824177f5c7da9941c10518
- Parents:
- f8b433439cf49b77af81f659c8362ad9ef9dcb19
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ChangeLog
rf8b433 ra28e0e9 1 Tue Feb 17 18:43:11 MET 1998 hannes 2 * added additional factorization check after redTail 3 (kstdfac.cc) 4 1 5 1998-02-17 Olaf Bachmann <obachman@mathematik.uni-kl.de> 2 6 3 7 * longalg.cc (napWrite): made it globally available to support 4 FACTORY_DEBUG_OUT 8 FACTORY_DEBUG_OUT 5 9 6 10 * clapsing.cc (singclap_algdividecontent): inserted -
Singular/kstdfac.cc
rf8b433 ra28e0e9 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstdfac.cc,v 1.1 0 1997-12-03 16:58:47 obachmanExp $ */4 /* $Id: kstdfac.cc,v 1.11 1998-02-17 17:53:01 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: factorizing alg. of Buchberger … … 28 28 #include "lists.h" 29 29 #include "ideals.h" 30 #include "timer.h"31 #include "kstdfac.h"32 30 #ifdef COMP_FAST 33 31 #include "spSpolyLoop.h" 34 32 #endif 35 33 #include "timer.h" 34 #include "kstdfac.h" 36 35 37 36 #ifdef HAVE_FACTORY … … 495 494 if (strat->P.lcm!=NULL) pFree1(strat->P.lcm); 496 495 int i; 496 for(i=0;i<IDELEMS(fac);i++) 497 { 498 int pos; 499 if (strat->sl==-1) pos=0; 500 else pos=posInS(strat->S,strat->sl,fac->m[i]); 501 if (TEST_OPT_INTSTRATEGY) 502 { 503 if (!TEST_OPT_MINRES||(strat->syzComp==0)||(!strat->homog)) 504 { 505 fac->m[i] = redtailBba(fac->m[i],pos-1,strat); 506 pCleardenom(fac->m[i]); 507 } 508 } 509 else 510 { 511 pNorm(fac->m[i]); 512 if (!TEST_OPT_MINRES||(strat->syzComp==0)||(!strat->homog)) 513 { 514 fac->m[i] = redtailBba(fac->m[i],pos-1,strat); 515 } 516 } 517 facdeg=pFDeg(fac->m[i]); 518 ideal fac2=singclap_factorize(fac->m[i],NULL,1); 519 #ifndef HAVE_LIBFAC_P 520 if ((fac2!=NULL)&&(IDELEMS(fac2)>1)&&(facdeg!=pFDeg(fac2->m[0]))) 521 #else 522 if ((IDELEMS(fac2)>1)&&(facdeg!=pFDeg(fac2->m[0]))) 523 #endif 524 { 525 if (TEST_OPT_DEBUG) 526 { 527 wrp(fac->m[i]); 528 Print("-> %d factors, again\n",IDELEMS(fac2)); 529 //jjPRINT_MA0((matrix)fac2,""); 530 } 531 pDelete(&(fac->m[i])); 532 fac->m[i]=fac2->m[0]; 533 pEnlargeSet(&(fac->m),IDELEMS(fac),IDELEMS(fac2)-1); 534 memcpy(fac->m+IDELEMS(fac),&(fac2->m[1]),(IDELEMS(fac2)-1)*sizeof(poly 535 )); 536 IDELEMS(fac)+=(IDELEMS(fac2)-1); 537 } 538 } 539 497 540 for(i=IDELEMS(fac)-1;i>=0;i--) 498 541 { … … 513 556 if (n->sl==-1) pos=0; 514 557 else pos=posInS(n->S,n->sl,n->P.p); 515 if (TEST_OPT_INTSTRATEGY) 516 { 517 if (!TEST_OPT_MINRES||(n->syzComp==0)||(!n->homog)) 518 { 519 n->P.p = redtailBba(n->P.p,pos-1,n); 520 pCleardenom(n->P.p); 521 } 522 } 523 else 524 { 525 pNorm(n->P.p); 526 if (!TEST_OPT_MINRES||(n->syzComp==0)||(!n->homog)) 527 { 528 n->P.p = redtailBba(n->P.p,pos-1,n); 529 } 530 } 558 // we have already reduced all elements from fac.... 559 //if (TEST_OPT_INTSTRATEGY) 560 //{ 561 // if (!TEST_OPT_MINRES||(n->syzComp==0)||(!n->homog)) 562 // { 563 // n->P.p = redtailBba(n->P.p,pos-1,n); 564 // pCleardenom(n->P.p); 565 // } 566 //} 567 //else 568 //{ 569 // pNorm(n->P.p); 570 // if (!TEST_OPT_MINRES||(n->syzComp==0)||(!n->homog)) 571 // { 572 // n->P.p = redtailBba(n->P.p,pos-1,n); 573 // } 574 //} 531 575 if (TEST_OPT_DEBUG) 532 576 {
Note: See TracChangeset
for help on using the changeset viewer.