Changeset 6815af in git


Ignore:
Timestamp:
May 9, 2005, 9:34:19 AM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
745dd8aa6e5dac7832a30be6d3ca34ea1f92eddd
Parents:
b453507d9130cdc5fa6f4298af48bc2e16c88ab1
Message:
*hannes: rDecompose: plural rings have poly data: check added


git-svn-id: file:///usr/local/Singular/svn/trunk@8088 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    rb453507 r6815af  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.110 2005-05-06 17:31:05 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.111 2005-05-09 07:34:19 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    15801580lists rDecompose(const ring r)
    15811581{
    1582   // sanity check:
     1582  // sanity check: require currRing==r for rings with polynomial data
    15831583  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");
    15881591    return NULL;
    15891592  }
     
    17881791      if (R->algring->qideal!=NULL)
    17891792      {
    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        }
    17911804      }
    17921805    }
Note: See TracChangeset for help on using the changeset viewer.