Changeset 889de3e in git
- Timestamp:
- Nov 29, 2006, 7:09:45 PM (17 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- 9539e8af1a7d0840365c263c55c25018387e104c
- Parents:
- d257ae16f04da87471103e162ffbf37e5a882860
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kutil.cc
rd257ae r889de3e 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.3 6 2006-11-17 14:48:40Singular Exp $ */4 /* $Id: kutil.cc,v 1.37 2006-11-29 18:09:45 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 4748 4748 int i, suc=0; 4749 4749 poly redSi=NULL; 4750 BOOLEAN change; 4750 4751 // Print("nach initS: updateS start mit sl=%d\n",(strat->sl)); 4751 4752 // for (i=0; i<=(strat->sl); i++) … … 4763 4764 while (i<=strat->sl) 4764 4765 { 4766 change=FALSE; 4765 4767 if (((strat->syzComp==0) || (pGetComp(strat->S[i])<=strat->syzComp)) 4766 4768 && ((strat->fromQ==NULL) || (strat->fromQ[i]==0))) 4767 4769 { 4768 pDelete(&redSi);4769 4770 redSi = pHead(strat->S[i]); 4770 4771 strat->S[i] = redBba(strat->S[i],i-1,strat); 4771 4772 if ((strat->ak!=0)&&(strat->S[i]!=NULL)) 4772 4773 strat->S[i]=redQ(strat->S[i],i+1,strat); /*reduce S[i] mod Q*/ 4773 if (TEST_OPT_DEBUG && (pCmp(redSi,strat->S[i])!=0)) 4774 { 4775 PrintS("reduce:"); 4776 wrp(redSi);PrintS(" to ");p_wrp(strat->S[i], currRing, strat->tailRing);PrintLn(); 4777 } 4778 if (TEST_OPT_PROT && (pCmp(redSi,strat->S[i])!=0)) 4779 { 4780 if (strat->S[i]==NULL) 4781 PrintS("V"); 4782 else 4783 PrintS("v"); 4784 mflush(); 4785 } 4774 if (pCmp(redSi,strat->S[i])!=0) 4775 { 4776 change=TRUE; 4777 if (TEST_OPT_DEBUG) 4778 { 4779 PrintS("reduce:"); 4780 wrp(redSi);PrintS(" to ");p_wrp(strat->S[i], currRing, strat->tailRing);PrintLn(); 4781 } 4782 if (TEST_OPT_PROT) 4783 { 4784 if (strat->S[i]==NULL) 4785 PrintS("V"); 4786 else 4787 PrintS("v"); 4788 mflush(); 4789 } 4790 } 4791 pDeleteLm(&redSi); 4786 4792 if (strat->S[i]==NULL) 4787 4793 { 4788 pDelete(&redSi);4789 4794 deleteInS(i,strat); 4790 4795 i--; 4791 4796 } 4792 else 4797 else if (change) 4793 4798 { 4794 pDelete(&redSi);4795 4799 if (TEST_OPT_INTSTRATEGY) 4796 4800 { … … 4847 4851 while (i<=strat->sl) 4848 4852 { 4853 change=FALSE; 4849 4854 if (((strat->syzComp==0) || (pGetComp(strat->S[i])<=strat->syzComp)) 4850 4855 && ((strat->fromQ==NULL) || (strat->fromQ[i]==0))) 4851 4856 { 4852 pDelete(&redSi);4853 4857 redSi=pHead((strat->S)[i]); 4854 4858 (strat->S)[i] = redMora((strat->S)[i],i-1,strat); … … 4858 4862 i--; 4859 4863 } 4860 else 4864 else if (pCmp((strat->S)[i],redSi)!=0) 4861 4865 { 4862 4866 if (TEST_OPT_INTSTRATEGY) 4863 4867 { 4864 pDelete(&redSi);4865 4868 pCleardenom(strat->S[i]);// also does a pContent 4866 4869 h.p = strat->S[i]; … … 4870 4873 else 4871 4874 { 4872 pDelete(&redSi);4873 4875 pNorm(strat->S[i]); 4874 4876 h.p = strat->S[i]; … … 4879 4881 strat->sevS[i] = h.sev; 4880 4882 } 4883 pDeleteLm(&redSi); 4881 4884 kTest(strat); 4882 4885 } … … 4924 4927 if (suc!= -1) updateS(toT,strat); 4925 4928 } 4926 if (redSi!=NULL) pDeleteLm(&redSi);4927 4929 #ifdef KDEBUG 4928 4930 kTest(strat);
Note: See TracChangeset
for help on using the changeset viewer.