Changeset 805feb in git
- Timestamp:
- Feb 5, 2015, 9:14:18 AM (9 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5d0cbde5a46435543fb6098ae4b46629d3f54b87
- Parents:
- 8979e0ad7532ffe1c5d21bdd5b3fdcb4aef3cb2b
- git-author:
- Yue Ren <ren@mathematik.uni-kl.de>2015-02-05 09:14:18+01:00
- git-committer:
- Yue Ren <ren@mathematik.uni-kl.de>2015-02-06 13:47:07+01:00
- Location:
- Singular/dyn_modules/gfanlib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/gfanlib/bbcone.cc
r8979e0 r805feb 1621 1621 * Computes a relative interior point for each facet of zc 1622 1622 **/ 1623 gfan::ZMatrix interiorPointsOfFacets(const gfan::ZCone zc)1623 gfan::ZMatrix interiorPointsOfFacets(const gfan::ZCone &zc, const std::set<gfan::ZVector> &exceptThese) 1624 1624 { 1625 1625 gfan::ZMatrix inequalities = zc.getFacets(); … … 1639 1639 newEquations.appendRow(inequalities[0]); 1640 1640 gfan::ZCone facet = gfan::ZCone(newInequalities,newEquations); 1641 relativeInteriorPoints.appendRow(facet.getRelativeInteriorPoint()); 1641 facet.canonicalize(); 1642 gfan::ZVector interiorPoint = facet.getRelativeInteriorPoint(); 1643 if (exceptThese.count(interiorPoint)==0) 1644 relativeInteriorPoints.appendRow(interiorPoint); 1642 1645 1643 1646 /* these are the cases i=1,...,r-2 */ … … 1649 1652 newEquations.appendRow(inequalities[i]); 1650 1653 facet = gfan::ZCone(newInequalities,newEquations); 1651 relativeInteriorPoints.appendRow(facet.getRelativeInteriorPoint()); 1654 facet.canonicalize(); 1655 interiorPoint = facet.getRelativeInteriorPoint(); 1656 if (exceptThese.count(interiorPoint)==0) 1657 relativeInteriorPoints.appendRow(interiorPoint); 1652 1658 } 1653 1659 … … 1657 1663 newEquations.appendRow(inequalities[r-1]); 1658 1664 facet = gfan::ZCone(newInequalities,newEquations); 1659 relativeInteriorPoints.appendRow(facet.getRelativeInteriorPoint()); 1665 facet.canonicalize(); 1666 interiorPoint = facet.getRelativeInteriorPoint(); 1667 if (exceptThese.count(interiorPoint)==0) 1668 relativeInteriorPoints.appendRow(interiorPoint); 1660 1669 1661 1670 return relativeInteriorPoints; -
Singular/dyn_modules/gfanlib/bbcone.h
r8979e0 r805feb 20 20 gfan::ZVector randomPoint(const gfan::ZCone* zc); 21 21 gfan::ZCone liftUp(const gfan::ZCone &zc); 22 gfan::ZMatrix interiorPointsOfFacets(const gfan::ZCone zc);22 gfan::ZMatrix interiorPointsOfFacets(const gfan::ZCone &zc, const std::set<gfan::ZVector> &exceptThese=std::set<gfan::ZVector>()); 23 23 24 24 #endif -
Singular/dyn_modules/gfanlib/tropicalTraversal.cc
r8979e0 r805feb 48 48 workingList.insert(startingCone); 49 49 const tropicalStrategy* currentStrategy=startingCone.getTropicalStrategy(); 50 std::set<gfan::ZVector> finishedInteriorPoints; 50 51 while(!workingList.empty()) 51 52 { … … 54 55 */ 55 56 groebnerCone sigma=*(workingList.begin()); 56 gfan::ZMatrix interiorPoints = interiorPointsOfFacets(sigma.getPolyhedralCone() );57 gfan::ZMatrix interiorPoints = interiorPointsOfFacets(sigma.getPolyhedralCone(),finishedInteriorPoints); 57 58 58 59 for (int i=0; i<interiorPoints.getHeight(); i++) … … 81 82 } 82 83 } 84 finishedInteriorPoints.insert(interiorPoint); 83 85 } 84 86
Note: See TracChangeset
for help on using the changeset viewer.