Changeset 8e5a5b4 in git
- Timestamp:
- Jun 16, 2009, 5:49:43 PM (14 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 63b728ccb08555d986799d4288c23f729d16f2e6
- Parents:
- ae5056dd02992f96eb03929712d672607ab2e1bd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gfan.cc
rae5056 r8e5a5b4 2 2 Compute the Groebner fan of an ideal 3 3 $Author: monerjan $ 4 $Date: 2009-06-16 08:45:33 $5 $Header: /exports/cvsroot-2/cvsroot/kernel/gfan.cc,v 1.6 1 2009-06-16 08:45:33 monerjan Exp $6 $Id: gfan.cc,v 1.6 1 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 $ 7 7 */ 8 8 … … 380 380 this->inputIdeal=idCopy(this->gcBasis); 381 381 this->baseRing=rCopy0(f.flipRing); 382 this->numFacets=0; 382 383 //rComplete(this->baseRing); 383 384 //rChangeCurrRing(this->baseRing); … … 1577 1578 gcone *gcAct; 1578 1579 gcAct = &gcRoot; 1579 gcone =*gcPtr;1580 gcone *gcPtr; 1580 1581 gcPtr = &gcRoot; 1581 1582 … … 1617 1618 1618 1619 /*End of initialisation*/ 1619 fAct = gcAct->facetPtr;1620 fAct = SearchListAct; 1620 1621 /*2nd step 1621 1622 Choose a facet from fListPtr, flip it and forget the previous cone … … 1625 1626 {//NOTE See to it that the cone is only changed after ALL facets have been flipped! 1626 1627 //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 1640 1682 } 1641 1683
Note: See TracChangeset
for help on using the changeset viewer.