Changeset 9441be in git for kernel/kutil.cc
- Timestamp:
- Feb 27, 2009, 12:21:24 PM (15 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- bc772d8c1eb752fbedb6e31bf0a94ac364666dc1
- Parents:
- e371bf4ee8fd6db22ae0856bc12a6c78fc50df7e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kutil.cc
re371bf r9441be 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kutil.cc,v 1.13 0 2009-02-27 11:05:15Singular Exp $ */4 /* $Id: kutil.cc,v 1.131 2009-02-27 11:21:24 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: kernel: utils for kStd … … 1990 1990 if(TEST_OPT_DEBUG) 1991 1991 { 1992 1993 1994 1995 1996 1992 Print("chain-crit-part: S[%d]=",j); 1993 p_wrp(strat->S[j],currRing); 1994 Print(" divide B[%d].lcm=",i); 1995 p_wrp(strat->B[i].lcm,currRing); 1996 PrintLn(); 1997 1997 } 1998 1998 deleteInL(strat->B,&strat->Bl,i,strat); … … 2025 2025 if(TEST_OPT_DEBUG) 2026 2026 { 2027 2028 2029 2030 2031 2027 PrintS("chain-crit-part: pCompareChainPart p="); 2028 p_wrp(p,currRing); 2029 Print(" delete L[%d]",j); 2030 p_wrp(strat->L[j].lcm,currRing); 2031 PrintLn(); 2032 2032 } 2033 2033 deleteInL(strat->L,&strat->Ll,j,strat); … … 2056 2056 if(TEST_OPT_DEBUG) 2057 2057 { 2058 2059 2060 2061 2062 2058 Print("chain-crit-part: sugar B[%d].lcm=",j); 2059 p_wrp(strat->B[j].lcm,currRing); 2060 Print(" delete B[%d]",i); 2061 p_wrp(strat->B[i].lcm,currRing); 2062 PrintLn(); 2063 2063 } 2064 2064 deleteInL(strat->B,&strat->Bl,i,strat); … … 2069 2069 if(TEST_OPT_DEBUG) 2070 2070 { 2071 2072 2073 2074 2075 2071 Print("chain-crit-part: sugar B[%d].lcm=",i); 2072 p_wrp(strat->B[i].lcm,currRing); 2073 Print(" delete B[%d]",j); 2074 p_wrp(strat->B[j].lcm,currRing); 2075 PrintLn(); 2076 2076 } 2077 2077 deleteInL(strat->B,&strat->Bl,j,strat); … … 2099 2099 if(TEST_OPT_DEBUG) 2100 2100 { 2101 2102 2103 2104 2105 2101 PrintS("chain-crit-part: sugar:pCompareChainPart p="); 2102 p_wrp(p,currRing); 2103 Print(" delete L[%d]",j); 2104 p_wrp(strat->L[j].lcm,currRing); 2105 PrintLn(); 2106 2106 } 2107 2107 deleteInL(strat->L,&strat->Ll,j,strat); … … 2125 2125 if(TEST_OPT_DEBUG) 2126 2126 { 2127 2128 2129 2127 Print("chain-crit-part: equal lcm B[%d].lcm=",j); 2128 p_wrp(strat->B[j].lcm,currRing); 2129 Print(" delete B[%d]\n",i); 2130 2130 } 2131 2131 strat->c3++; … … 2152 2152 if(TEST_OPT_DEBUG) 2153 2153 { 2154 2155 2156 2157 2158 2154 PrintS("chain-crit-part: pCompareChainPart p="); 2155 p_wrp(p,currRing); 2156 Print(" delete L[%d]",j); 2157 p_wrp(strat->L[j].lcm,currRing); 2158 PrintLn(); 2159 2159 } 2160 2160 deleteInL(strat->L,&strat->Ll,j,strat); … … 2216 2216 if(TEST_OPT_DEBUG) 2217 2217 { 2218 2219 2220 2221 2222 2218 PrintS("chain-crit-part: divisible_by p="); 2219 p_wrp(p,currRing); 2220 Print(" delete L[%d]",l); 2221 p_wrp(strat->L[l].lcm,currRing); 2222 PrintLn(); 2223 2223 } 2224 2224 deleteInL(strat->L,&strat->Ll,l,strat); … … 2229 2229 if(TEST_OPT_DEBUG) 2230 2230 { 2231 2232 2233 2234 2235 2231 PrintS("chain-crit-part: divisible_by(2) p="); 2232 p_wrp(p,currRing); 2233 Print(" delete L[%d]",i); 2234 p_wrp(strat->L[i].lcm,currRing); 2235 PrintLn(); 2236 2236 } 2237 2237 deleteInL(strat->L,&strat->Ll,i,strat); … … 5851 5851 int q; 5852 5852 poly p; 5853 BOOLEAN reduction_found=FALSE; 5853 5854 for (l=IDELEMS(r)-1;l>=0;l--) 5854 5855 { … … 5865 5866 r->m[l]=kNF(Q,NULL,p); 5866 5867 pDelete(&p); 5868 reduction_found=TRUE; 5867 5869 } 5868 5870 else … … 5871 5873 } 5872 5874 break; 5875 } 5876 } 5877 } 5878 } 5879 if (/*TEST_OPT_REDSB &&*/ reduction_found) 5880 { 5881 for (l=IDELEMS(r)-1;l>=0;l--) 5882 { 5883 if (r->m[l]!=NULL) 5884 { 5885 for(q=IDELEMS(r)-1;q>=0;q--) 5886 { 5887 if ((l!=q) 5888 && (r->m[q]!=NULL) 5889 &&(pLmDivisibleBy(r->m[l],r->m[q]))) 5890 { 5891 pDelete(&r->m[q]); 5892 } 5873 5893 } 5874 5894 }
Note: See TracChangeset
for help on using the changeset viewer.