Changeset d20633 in git for kernel/ideals.cc
- Timestamp:
- Jan 13, 2010, 4:47:04 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 03993beb87e3cc442e9ff88e2b2f8dcdd584ec58
- Parents:
- af3d2ab658fbcc713db4e2f31354b07220c9c07a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
raf3d2a rd20633 2147 2147 for (i=1; i<k; i++) 2148 2148 { 2149 p = pCopy_noCheck(h4->m[i-1]); 2150 pShift(&p,1); 2151 h4->m[i] = p; 2152 } 2153 } 2154 2149 if (h4->m[i-1]!=NULL) 2150 { 2151 p = pCopy_noCheck(h4->m[i-1]); 2152 pShift(&p,1); 2153 h4->m[i] = p; 2154 } 2155 } 2156 } 2157 idSkipZeroes(h4); 2155 2158 kkk = IDELEMS(h4); 2156 2159 i = IDELEMS(temph1); 2157 while ((i>0) && (temph1->m[i-1]==NULL)) i--;2158 2160 for (l=0; l<i; l++) 2159 2161 { … … 2180 2182 if (*addOnlyOne) 2181 2183 { 2184 idSkipZeroes(h4); 2182 2185 p = h4->m[0]; 2183 2186 for (i=0;i<IDELEMS(h4)-1;i++) … … 2186 2189 } 2187 2190 h4->m[IDELEMS(h4)-1] = p; 2188 idSkipZeroes(h4); 2189 // test |= Sy_bit(OPT_SB_1); 2191 test |= Sy_bit(OPT_SB_1); 2190 2192 } 2191 2193 idDelete(&temph1); … … 2227 2229 s_h4 = idrMoveR(s_h4,orig_ring); 2228 2230 idTest(s_h4); 2231 #if 0 2232 void ipPrint_MA0(matrix m, const char *name); 2233 matrix m=idModule2Matrix(idCopy(s_h4)); 2234 PrintS("start:\n"); 2235 ipPrint_MA0(m,"Q"); 2236 idDelete((ideal *)&m); 2237 PrintS("last elem:");wrp(s_h4->m[IDELEMS(s_h4)-1]);PrintLn(); 2238 #endif 2229 2239 ideal s_h3; 2230 2240 if (addOnlyOne) 2231 2241 { 2232 s_h3 = kStd(s_h4,currQuotient,hom,&weights1,NULL, kmax-1,IDELEMS(s_h4)-1);2242 s_h3 = kStd(s_h4,currQuotient,hom,&weights1,NULL,0/*kmax-1*/,IDELEMS(s_h4)-1); 2233 2243 } 2234 2244 else … … 2236 2246 s_h3 = kStd(s_h4,currQuotient,hom,&weights1,NULL,kmax-1); 2237 2247 } 2248 test = old_test; 2249 #if 0 2250 // only together with the above debug stuff 2251 idSkipZeroes(s_h3); 2252 m=idModule2Matrix(idCopy(s_h3)); 2253 Print("result, kmax=%d:\n",kmax); 2254 ipPrint_MA0(m,"S"); 2255 idDelete((ideal *)&m); 2256 #endif 2238 2257 idTest(s_h3); 2239 2258 if (weights1!=NULL) delete weights1; … … 2263 2282 } 2264 2283 idSkipZeroes(s_h3); 2265 test = old_test;2266 2284 idTest(s_h3); 2267 2285 return s_h3;
Note: See TracChangeset
for help on using the changeset viewer.