Changeset ab1c36 in git
- Timestamp:
- Feb 28, 2009, 12:49:05 PM (14 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 4e35c764980400902281d4a110155ff73cfed41c
- Parents:
- 8066e80d7cea5de772f7b10b2b1930521cb72523
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kstd2.cc
r8066e80 rab1c36 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd2.cc,v 1.8 1 2009-02-27 15:51:28Singular Exp $ */4 /* $Id: kstd2.cc,v 1.82 2009-02-28 11:49:05 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: alg. of Buchberger … … 788 788 */ 789 789 790 poly redNF (poly h,int &max_ind, kStrategy strat)790 poly redNF (poly h,int &max_ind,int nonorm,kStrategy strat) 791 791 { 792 792 if (h==NULL) return NULL; … … 815 815 { 816 816 #endif 817 int sl=pSize(strat->S[j]); 818 int jj=j; 819 loop 820 { 821 int sll; 822 jj=kFindNextDivisibleByInS(strat,jj+1,max_ind,&P); 823 if (jj<0) break; 824 sll=pSize(strat->S[jj]); 825 if (sll<sl) 817 int sl=pSize(strat->S[j]); 818 int jj=j; 819 loop 826 820 { 827 if (!nIsOne(pGetCoeff(strat->S[j]))) 828 { 829 pNorm(strat->S[j]); 830 //if (TEST_OPT_PROT) { PrintS("n"); mflush(); } 831 sl=pSize(strat->S[j]); 832 } 833 if (!nIsOne(pGetCoeff(strat->S[jj]))) 834 { 835 pNorm(strat->S[jj]); 836 //if (TEST_OPT_PROT) { PrintS("n"); mflush(); } 837 sll=pSize(strat->S[jj]); 838 } 821 int sll; 822 jj=kFindNextDivisibleByInS(strat,jj+1,max_ind,&P); 823 if (jj<0) break; 824 sll=pSize(strat->S[jj]); 839 825 if (sll<sl) 840 826 { … … 847 833 } 848 834 } 849 } 850 if (!nIsOne(pGetCoeff(strat->S[j]))) 851 { 852 pNorm(strat->S[j]); 853 //if (TEST_OPT_PROT) { PrintS("n"); mflush(); } 854 } 835 if (!nonorm && !nIsOne(pGetCoeff(strat->S[j]))) 836 { 837 pNorm(strat->S[j]); 838 //if (TEST_OPT_PROT) { PrintS("n"); mflush(); } 839 } 855 840 #ifdef HAVE_RINGS 856 841 } … … 1230 1215 if (TEST_OPT_PROT) { PrintS("r"); mflush(); } 1231 1216 int max_ind; 1232 p = redNF(pCopy(q),max_ind, strat);1217 p = redNF(pCopy(q),max_ind,lazyReduce & KSTD_NF_NONORM,strat); 1233 1218 if ((p!=NULL)&&((lazyReduce & KSTD_NF_LAZY)==0)) 1234 1219 { … … 1292 1277 { 1293 1278 if (TEST_OPT_PROT) { PrintS("r");mflush(); } 1294 p = redNF(pCopy(q->m[i]),max_ind, strat);1279 p = redNF(pCopy(q->m[i]),max_ind,lazyReduce & KSTD_NF_NONORM,strat); 1295 1280 if ((p!=NULL)&&((lazyReduce & KSTD_NF_LAZY)==0)) 1296 1281 { -
kernel/kutil.h
r8066e80 rab1c36 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: kutil.h,v 1.4 1 2009-02-22 17:37:55Singular Exp $ */6 /* $Id: kutil.h,v 1.42 2009-02-28 11:49:04 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: kernel: utils for kStd … … 406 406 poly redtail (poly p,int pos,kStrategy strat); 407 407 poly redtail (LObject *L,int pos,kStrategy strat); 408 poly redNF (poly h,int & max_ind, kStrategy strat);408 poly redNF (poly h,int & max_ind,int nonorm,kStrategy strat); 409 409 int redNF0 (LObject *P,kStrategy strat); 410 410 poly redNFTail (poly h,const int sl,kStrategy strat);
Note: See TracChangeset
for help on using the changeset viewer.