Ignore:
Timestamp:
Feb 1, 2015, 7:02:48 PM (9 years ago)
Author:
Yue Ren <ren@…>
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
Message:
chg: fixed delete for Groebner cones
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/gfanlib/tropicalTraversal.cc

    r551009 r670e639  
    4848  workingList.insert(startingCone);
    4949  const tropicalStrategy* currentStrategy=startingCone.getTropicalStrategy();
     50  std::cout << "starting traversal" << std::endl;
    5051  while(!workingList.empty())
    5152  {
    52     // std::cout << "starting traversal" << std::endl;
    5353    /**
    5454     * Pick an element the working list and compute interior points on its facets
    5555     */
     56    std::cout << "picking cone and computing interior facet points..." << std::endl;
    5657    groebnerCone sigma=*(workingList.begin());
    5758    gfan::ZMatrix interiorPoints = interiorPointsOfFacets(sigma.getPolyhedralCone());
     
    6667      {
    6768        ideal inI = initial(sigma.getPolynomialIdeal(),sigma.getPolynomialRing(),interiorPoint);
     69        std::cout << "picking interiorPoint and computing rays of tropical star..." << std::endl;
    6870        gfan::ZMatrix normalVectors = raysOfTropicalStar(inI,
    6971                                                         sigma.getPolynomialRing(),
     
    7274        id_Delete(&inI,sigma.getPolynomialRing());
    7375
     76        std::cout << "checking for th neccessity to flip..." << std::endl;
    7477        std::vector<bool> needToFlip = checkNecessaryFlips(tropicalVariety,workingList,interiorPoint,normalVectors);
    7578        for (int j=0; j<normalVectors.getHeight(); j++)
     
    7780          if (needToFlip[j])
    7881          {
     82            std::cout << "flipping cone..." << std::endl;
    7983            groebnerCone neighbour = sigma.flipCone(interiorPoint,normalVectors[j]);
    8084            workingList.insert(neighbour);
     
    8791    workingList.erase(sigma);
    8892    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;
    9195  }
    9296  return tropicalVariety;
     
    98102  groebnerCones workingList;
    99103  workingList.insert(startingCone);
     104  std::cout << "starting traversal" << std::endl;
    100105  while(!workingList.empty())
    101106  {
    102     // std::cout << "starting traversal" << std::endl;
    103107    const groebnerCone sigma=*(workingList.begin());
    104108    const groebnerCones neighbours = sigma.tropicalNeighbours();
Note: See TracChangeset for help on using the changeset viewer.