Changeset 8e5a5b4 in git


Ignore:
Timestamp:
Jun 16, 2009, 5:49:43 PM (14 years ago)
Author:
Martin Monerjan
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
63b728ccb08555d986799d4288c23f729d16f2e6
Parents:
ae5056dd02992f96eb03929712d672607ab2e1bd
Message:
Modified noRevS. Looks promising, apparently needs some range checking at
end of linked list


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

Legend:

Unmodified
Added
Removed
  • kernel/gfan.cc

    rae5056 r8e5a5b4  
    22Compute the Groebner fan of an ideal
    33$Author: monerjan $
    4 $Date: 2009-06-16 08:45:33 $
    5 $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.61 2009-06-16 08:45:33 monerjan Exp $
    6 $Id: gfan.cc,v 1.61 2009-06-16 08:45:33 monerjan Exp $
     4$Date: 2009-06-16 15:49:43 $
     5$Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.62 2009-06-16 15:49:43 monerjan Exp $
     6$Id: gfan.cc,v 1.62 2009-06-16 15:49:43 monerjan Exp $
    77*/
    88
     
    380380                        this->inputIdeal=idCopy(this->gcBasis);
    381381                        this->baseRing=rCopy0(f.flipRing);
     382                        this->numFacets=0;
    382383                        //rComplete(this->baseRing);
    383384                        //rChangeCurrRing(this->baseRing);
     
    15771578                        gcone *gcAct;
    15781579                        gcAct = &gcRoot;
    1579                         gcone = *gcPtr;
     1580                        gcone *gcPtr;
    15801581                        gcPtr = &gcRoot;
    15811582                       
     
    16171618                       
    16181619                        /*End of initialisation*/
    1619                         fAct = gcAct->facetPtr;
     1620                        fAct = SearchListAct;
    16201621                        /*2nd step
    16211622                        Choose a facet from fListPtr, flip it and forget the previous cone
     
    16251626                        {//NOTE See to it that the cone is only changed after ALL facets have been flipped!
    16261627                                //As of now this is not the case!
    1627                                 gcAct->flip(gcAct->gcBasis,SearchListAct);
    1628                                 /*ring rTmp=rCopy(SearchListAct->flipRing);
    1629                                 //NOTE It is absolutely crucial to go to the new ring before constructing a new cone!
    1630                                 rComplete(rTmp);
    1631                                 rChangeCurrRing(rTmp);
    1632                                 gcone *gcTmp = new gcone::gcone(*gcAct,*SearchListAct);
    1633                                 gcAct = gcTmp;
    1634                                 gcAct->getConeNormals(gcAct->gcBasis, FALSE);*/
    1635                                 //gcAct->getCodim2Normals(*gcAct);                     
    1636                        
    1637                         //add new facets
    1638                         //fListPtr = fListPtr->next;
    1639                                 SearchListAct = SearchListAct->next;
     1628                                int flag=1;
     1629//                              while(fAct->next!=NULL)
     1630//                              {
     1631//                                      gcAct->flip(gcAct->gcBasis,SearchListAct);
     1632//                                      ring rTmp=rCopy(SearchListAct->flipRing);
     1633//                                      //NOTE It is absolutely crucial to go to the new ring before constructing a new cone!
     1634//                                      rComplete(rTmp);
     1635//                                      rChangeCurrRing(rTmp);
     1636//                                      gcone *gcTmp = new gcone::gcone(*gcAct,*SearchListAct);
     1637//                                      gcTmp->getConeNormals(gcTmp->gcBasis, FALSE);
     1638//                                      gcTmp->getCodim2Normals(*gcTmp);
     1639//                                      /*add facets to SLA here*/                                     
     1640//                                      rChangeCurrRing(gcAct->baseRing);
     1641//                                      gcPtr->next=gcTmp;
     1642//                                      if(flag==1)
     1643//                                              gcAct->next=gcTmp;
     1644//                                      gcPtr=gcPtr->next;
     1645//                                      fAct=fAct->next;
     1646//                                      flag++;
     1647//                              }
     1648//                             
     1649//                              if(SearchListAct->getUCN()!=SearchListAct->next->getUCN())
     1650//                              {
     1651//                                      ring r=rCopy(SearchListAct->flipRing);
     1652//                                      rComplete(r);
     1653//                                      rChangeCurrRing(r);
     1654//                                      gcAct = gcAct->next;
     1655//                              }
     1656//                              SearchListAct = SearchListAct->next;
     1657                                fAct = SearchListAct;
     1658                                while( (fAct->next!=NULL) && (fAct->getUCN()==fAct->next->getUCN() ) )
     1659                                {
     1660                                        gcAct->flip(gcAct->gcBasis,fAct);
     1661                                        ring rTmp=rCopy(SearchListAct->flipRing);
     1662                                        rComplete(rTmp);
     1663                                        rChangeCurrRing(rTmp);
     1664                                        gcone *gcTmp = new gcone::gcone(*gcAct,*SearchListAct);
     1665                                        gcTmp->getConeNormals(gcTmp->gcBasis, FALSE);
     1666                                        gcTmp->getCodim2Normals(*gcTmp);
     1667                                        /*add facets to SLA here*/                                     
     1668                                        rChangeCurrRing(gcAct->baseRing);
     1669                                        gcPtr->next=gcTmp;
     1670                                        if(flag==1)
     1671                                                gcAct->next=gcTmp;
     1672                                        gcPtr=gcPtr->next;
     1673                                        fAct=fAct->next;
     1674                                        flag++;
     1675                                }
     1676                                SearchListAct=fAct->next;
     1677                                ring r=rCopy(SearchListAct->flipRing);
     1678                                rComplete(r);
     1679                                rChangeCurrRing(r);
     1680                                gcAct = gcAct->next;
     1681                               
    16401682                        }                       
    16411683               
Note: See TracChangeset for help on using the changeset viewer.