Changeset 6815af in git
- Timestamp:
- May 9, 2005, 9:34:19 AM (18 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- 745dd8aa6e5dac7832a30be6d3ca34ea1f92eddd
- Parents:
- b453507d9130cdc5fa6f4298af48bc2e16c88ab1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipshell.cc
rb453507 r6815af 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.11 0 2005-05-06 17:31:05Singular Exp $ */4 /* $Id: ipshell.cc,v 1.111 2005-05-09 07:34:19 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 1580 1580 lists rDecompose(const ring r) 1581 1581 { 1582 // sanity check: 1582 // sanity check: require currRing==r for rings with polynomial data 1583 1583 if ((r!=currRing) 1584 && ((r->minpoly!=NULL) || (r->qideal!=NULL) || (r->minideal!=NULL)) 1585 ) 1586 { 1587 WerrorS("ring must be the base ring or compatible"); 1584 && ((r->minpoly!=NULL) || (r->qideal!=NULL) || (r->minideal!=NULL) 1585 #ifdef HAVE_PLURAL 1586 || (rIsPluralRing(r)) 1587 #endif 1588 )) 1589 { 1590 WerrorS("ring with polynomial data must be the base ring or compatible"); 1588 1591 return NULL; 1589 1592 } … … 1788 1791 if (R->algring->qideal!=NULL) 1789 1792 { 1790 R->minpoly=pGetCoeff(R->algring->qideal->m[0]); 1793 if (IDELEMS(R->algring->qideal)==1) 1794 { 1795 R->minpoly=pGetCoeff(R->algring->qideal->m[0]); 1796 omFreeBinAddr(R->algring->qideal->m[0]); 1797 R->algring->qideal->m[0]=NULL; 1798 idDelete(&(R->algring->qideal)); 1799 } 1800 else 1801 { 1802 WerrorS("not implemented yet."); 1803 } 1791 1804 } 1792 1805 }
Note: See TracChangeset
for help on using the changeset viewer.