Changeset a5d181c in git
- Timestamp:
- Oct 25, 2011, 11:26:50 AM (12 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 0033111f9b9caf502a298c422c3cbea31cee1927
- Parents:
- a82001e491202d6564ebdf4f187241737b315ec6
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-10-25 11:26:50+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:14:09+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
ra82001e ra5d181c 277 277 278 278 ideal res=idElimination(h,t); 279 // cleanup 279 // cleanup 280 280 idDelete(&h); 281 res=idrMoveR(res,r,origRing);281 if (res!=NULL) res=idrMoveR(res,r,origRing); 282 282 rChangeCurrRing(origRing); 283 283 rDelete(r); … … 1043 1043 { 1044 1044 WerrorS("2nd module does not lie in the first"); 1045 #if 0 1046 if (unit!=NULL) 1047 { 1048 i=IDELEMS(submod); 1049 *unit=mpNew(i,i); 1050 for (j=i;j>0;j--) 1051 { 1052 MATELEM(*unit,j,j)=pOne(); 1053 } 1054 } 1055 if (rest!=NULL) 1056 { 1057 *rest=idCopy(submod); 1058 } 1059 return idInit(1,mod->rank); 1060 #endif 1061 return idInit(IDELEMS(submod),submod->rank); 1045 return NULL; 1062 1046 } 1063 1047 if (unit!=NULL) … … 1518 1502 { 1519 1503 WerrorS("cannot eliminate in a qring"); 1520 return idCopy(h1);1504 return NULL; 1521 1505 } 1522 1506 if (idIs0(h1)) return idInit(1,h1->rank); … … 1531 1515 { 1532 1516 WerrorS("no elimination is possible: subalgebra is not admissible"); 1533 return idCopy(h1);1517 return NULL; 1534 1518 } 1535 1519 } … … 1673 1657 if (w!=NULL) 1674 1658 delete w; 1675 return idCopy(h1);1659 return NULL; 1676 1660 } 1677 1661 } … … 2484 2468 intvec *w = NULL; 2485 2469 2486 ring save_r = currRing; rChangeCurrRing(r); ideal S=idSyzygies(I,testHomog,&w); rChangeCurrRing(save_r); 2487 2470 ring save_r = currRing; rChangeCurrRing(r); ideal S=idSyzygies(I,testHomog,&w); rChangeCurrRing(save_r); 2471 2488 2472 if (w!=NULL) delete w; 2489 2473 poly gg=p_TakeOutComp(&(S->m[0]), 2, r); … … 2491 2475 poly gcd_p=singclap_pdivide(f,gg, r); 2492 2476 p_Delete(&gg, r); 2493 2477 2494 2478 return gcd_p; 2495 2479 } … … 2608 2592 x[j]=n_Init(0, R->cf); // is R->cf really n_Q???, yes! 2609 2593 } 2610 2594 2611 2595 number n=nChineseRemainder(x,q,rl, R->cf); 2612 2596
Note: See TracChangeset
for help on using the changeset viewer.