Changeset 913422 in git for kernel/gfan.cc


Ignore:
Timestamp:
Oct 23, 2009, 4:56:55 PM (14 years ago)
Author:
Martin Monerjan
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
fcf7f7fdeacc87972a8c4bb4f7e2da1b83838e0b
Parents:
698fe42860f6adbfb03425b76fe4bc95dd89e1a6
Message:
gcone::isMonomial. Hack to avoid infinite loop when inputGB is monomial


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

Legend:

Unmodified
Added
Removed
  • kernel/gfan.cc

    r698fe4 r913422  
    22Compute the Groebner fan of an ideal
    33$Author: monerjan $
    4 $Date: 2009-10-20 15:14:02 $
    5 $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.99 2009-10-20 15:14:02 monerjan Exp $
    6 $Id: gfan.cc,v 1.99 2009-10-20 15:14:02 monerjan Exp $
     4$Date: 2009-10-23 14:56:55 $
     5$Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.100 2009-10-23 14:56:55 monerjan Exp $
     6$Id: gfan.cc,v 1.100 2009-10-23 14:56:55 monerjan Exp $
    77*/
    88
     
    472472        }
    473473        cout << endl;
     474}
     475
     476bool gcone::isMonomial(ideal const &I)
     477{
     478        bool res = TRUE;
     479        for(int ii=0;ii<IDELEMS(I);ii++)
     480        {
     481                if(pLength((poly)I->m[ii])>1)
     482                {
     483                        res = FALSE;
     484                        break;
     485                }                                               
     486        }
     487        return res;
    474488}
    475489               
     
    27142728                cout << "GB of input ideal is:" << endl;
    27152729                idShow(gcAct->gcBasis);
     2730                if(gcAct->isMonomial(gcAct->gcBasis))
     2731                {
     2732                        WerrorS("Monomial input - terminating");
     2733                        res=gcAct->gcBasis;
     2734                        //break;
     2735                }
    27162736                cout << endl;
    27172737                gcAct->getConeNormals(gcAct->gcBasis);         
Note: See TracChangeset for help on using the changeset viewer.