Changeset 670e639 in git for Singular/dyn_modules/gfanlib/tropicalTraversal.cc
- Timestamp:
- Feb 1, 2015, 7:02:48 PM (9 years ago)
- Branches:
- (u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
- Children:
- 44d34b600fd8727833693222ffbd36ce803e3e60
- Parents:
- 5510099a60c7cd4cb8ef47b8e583ed11e4b4ffe3
- git-author:
- Yue Ren <ren@mathematik.uni-kl.de>2015-02-01 19:02:48+01:00
- git-committer:
- Yue Ren <ren@mathematik.uni-kl.de>2015-02-06 13:47:06+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/gfanlib/tropicalTraversal.cc
r551009 r670e639 48 48 workingList.insert(startingCone); 49 49 const tropicalStrategy* currentStrategy=startingCone.getTropicalStrategy(); 50 std::cout << "starting traversal" << std::endl; 50 51 while(!workingList.empty()) 51 52 { 52 // std::cout << "starting traversal" << std::endl;53 53 /** 54 54 * Pick an element the working list and compute interior points on its facets 55 55 */ 56 std::cout << "picking cone and computing interior facet points..." << std::endl; 56 57 groebnerCone sigma=*(workingList.begin()); 57 58 gfan::ZMatrix interiorPoints = interiorPointsOfFacets(sigma.getPolyhedralCone()); … … 66 67 { 67 68 ideal inI = initial(sigma.getPolynomialIdeal(),sigma.getPolynomialRing(),interiorPoint); 69 std::cout << "picking interiorPoint and computing rays of tropical star..." << std::endl; 68 70 gfan::ZMatrix normalVectors = raysOfTropicalStar(inI, 69 71 sigma.getPolynomialRing(), … … 72 74 id_Delete(&inI,sigma.getPolynomialRing()); 73 75 76 std::cout << "checking for th neccessity to flip..." << std::endl; 74 77 std::vector<bool> needToFlip = checkNecessaryFlips(tropicalVariety,workingList,interiorPoint,normalVectors); 75 78 for (int j=0; j<normalVectors.getHeight(); j++) … … 77 80 if (needToFlip[j]) 78 81 { 82 std::cout << "flipping cone..." << std::endl; 79 83 groebnerCone neighbour = sigma.flipCone(interiorPoint,normalVectors[j]); 80 84 workingList.insert(neighbour); … … 87 91 workingList.erase(sigma); 88 92 tropicalVariety.insert(sigma); 89 //std::cout << "tropicalVariety.size():" << tropicalVariety.size() << std::endl;90 //std::cout << "workingList.size():" << workingList.size() << std::endl;93 std::cout << "tropicalVariety.size():" << tropicalVariety.size() << std::endl; 94 std::cout << "workingList.size():" << workingList.size() << std::endl; 91 95 } 92 96 return tropicalVariety; … … 98 102 groebnerCones workingList; 99 103 workingList.insert(startingCone); 104 std::cout << "starting traversal" << std::endl; 100 105 while(!workingList.empty()) 101 106 { 102 // std::cout << "starting traversal" << std::endl;103 107 const groebnerCone sigma=*(workingList.begin()); 104 108 const groebnerCones neighbours = sigma.tropicalNeighbours();
Note: See TracChangeset
for help on using the changeset viewer.