Changeset b304ba in git
- Timestamp:
- Oct 21, 2011, 2:37:32 PM (12 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- bc4dd17ae0bd4c02957f75f188075907873f7935
- Parents:
- 780e112edff75c0cf87a2cbc679791d1307e3f7e
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r780e11 rb304ba 1814 1814 ideal R; matrix U; 1815 1815 ideal m = idLift(vi,ui,&R, FALSE,hasFlag(v,FLAG_STD),TRUE,&U); 1816 if (m==NULL) return TRUE; 1816 1817 // now make sure that all matices have the corect size: 1817 1818 matrix T = idModule2formatedMatrix(m,vl,ul); … … 2372 2373 static BOOLEAN jjLIFT(leftv res, leftv u, leftv v) 2373 2374 { 2374 ideal m;2375 2375 BITSET save_test=test; 2376 2376 int ul= IDELEMS((ideal)u->Data()); 2377 2377 int vl= IDELEMS((ideal)v->Data()); 2378 m = idLift((ideal)u->Data(),(ideal)v->Data(),NULL,FALSE,hasFlag(u,FLAG_STD)); 2378 ideal m = idLift((ideal)u->Data(),(ideal)v->Data(),NULL,FALSE, 2379 hasFlag(u,FLAG_STD)); 2380 if (m==NULL) return TRUE; 2379 2381 res->data = (char *)idModule2formatedMatrix(m,ul,vl); 2380 2382 test=save_test; … … 6133 6135 = idLift((ideal)u->Data(),(ideal)v->Data(),NULL,FALSE,hasFlag(u,FLAG_STD), 6134 6136 FALSE, (matrix *)(&(IDMATRIX((idhdl)(w->data))))); 6137 if (m==NULL) return TRUE; 6135 6138 res->data = (char *)idModule2formatedMatrix(m,ul,vl); 6136 6139 test=save_test; -
kernel/ideals.cc
r780e11 rb304ba 263 263 #else 264 264 if (pComparePolys(id->m[i], id->m[j])) pDelete(&id->m[j]); 265 #endif 265 #endif 266 266 } 267 267 } … … 365 365 #ifdef HAVE_RINGS 366 366 } 367 #endif 367 #endif 368 368 } 369 369 } … … 443 443 if (a==NULL) return -1; 444 444 445 if (nolex) 445 if (nolex) 446 446 { 447 447 int r=pLmCmp(a,b); … … 1190 1190 1191 1191 ideal res=idElimination(h,t); 1192 // cleanup 1192 // cleanup 1193 1193 idDelete(&h); 1194 res=idrMoveR(res,r,origRing);1194 if (res!=NULL) res=idrMoveR(res,r,origRing); 1195 1195 rChangeCurrRing(origRing); 1196 1196 rKill(r); … … 1953 1953 { 1954 1954 WerrorS("2nd module does not lie in the first"); 1955 #if 0 1956 if (unit!=NULL) 1957 { 1958 i=IDELEMS(submod); 1959 *unit=mpNew(i,i); 1960 for (j=i;j>0;j--) 1961 { 1962 MATELEM(*unit,j,j)=pOne(); 1963 } 1964 } 1965 if (rest!=NULL) 1966 { 1967 *rest=idCopy(submod); 1968 } 1969 return idInit(1,mod->rank); 1970 #endif 1971 return idInit(IDELEMS(submod),submod->rank); 1955 return NULL; 1972 1956 } 1973 1957 if (unit!=NULL) … … 2626 2610 { 2627 2611 WerrorS("cannot eliminate in a qring"); 2628 return idCopy(h1);2612 return NULL; 2629 2613 } 2630 2614 if (idIs0(h1)) return idInit(1,h1->rank); … … 2639 2623 { 2640 2624 WerrorS("no elimination is possible: subalgebra is not admissible"); 2641 return idCopy(h1);2625 return NULL; 2642 2626 } 2643 2627 } … … 2781 2765 if (w!=NULL) 2782 2766 delete w; 2783 return idCopy(h1);2767 return NULL; 2784 2768 } 2785 2769 }
Note: See TracChangeset
for help on using the changeset viewer.