Ignore:
Timestamp:
Jan 31, 2015, 11:44:20 AM (9 years ago)
Author:
Yue Ren <ren@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
5510099a60c7cd4cb8ef47b8e583ed11e4b4ffe3
Parents:
08749da88db85345212e694597d458072913a9c5
git-author:
Yue Ren <ren@mathematik.uni-kl.de>2015-01-31 11:44:20+01:00
git-committer:
Yue Ren <ren@mathematik.uni-kl.de>2015-02-06 13:47:06+01:00
Message:
chg: timing tests begin
File:
1 edited

Legend:

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

    r08749da rff48aa  
    131131   * If all initial ideals are monomial free, then we have our tropical curve */
    132132  // gfan::ZFan* zf = toFanStar(C);
    133   // std::cout << zf->toString();
     133  // std::cout << zf->toString(2+4+8+128) << std::endl;
    134134  // delete zf;
    135135  for (std::set<gfan::ZCone>::iterator zc=C.begin(); zc!=C.end();)
     
    137137    gfan::ZVector w = zc->getRelativeInteriorPoint();
    138138    gfan::ZMatrix W = zc->generatorsOfSpan();
     139    // std::cout << zc->extremeRays() << std::endl;
    139140
    140141    ring s = genericlyWeightedOrdering(r,u,w,W,currentStrategy);
     
    148149
    149150    poly mons = currentStrategy.checkInitialIdealForMonomial(ininIs,s,w);
    150     // poly mons = checkForMonomialViaSuddenSaturation(ininIs,s);
    151151    if (mons)
    152152    {
     153      // std::cout << "computing witness in tropical star!" << std::endl;
    153154      poly gs = witness(mons,inIsSTD,ininIs,s);
    154155      C = intersect(C,tropicalVariety(gs,s,currentStrategy),d);
     
    161162      zc = C.begin();
    162163      // gfan::ZFan* zf = toFanStar(C);
    163       // std::cout << zf->toString();
     164      // std::cout << zf->toString(2+4+8+128) << std::endl;
    164165      // delete zf;
    165166      id_Delete(&inIs,s);
     
    170171    else
    171172    {
    172       gfan::ZVector wNeg = -w;
     173      id_Delete(&inIs,s);
     174      id_Delete(&inIsSTD,s);
     175      id_Delete(&ininIs,s);
     176      rDelete(s);
     177
     178      gfan::ZVector wNeg = currentStrategy.negateWeight(w);
    173179      if (zc->contains(wNeg))
    174180      {
     
    183189
    184190        mons = currentStrategy.checkInitialIdealForMonomial(ininIs,s,wNeg);
    185         // mons = checkForMonomialViaSuddenSaturation(ininIs,s);
    186191        if (mons)
    187192        {
     
    217222{
    218223  std::set<gfan::ZCone> C = tropicalStar(I,r,u,currentStrategy);
    219   gfan::ZFan* zf = toFanStar(C);
     224  // gfan::ZFan* zf = toFanStar(C);
    220225  // std::cout << zf->toString();
    221   delete zf;
     226  // delete zf;
    222227  gfan::ZMatrix raysOfC(0,u.size());
    223228  if (!currentStrategy.restrictToLowerHalfSpace())
Note: See TracChangeset for help on using the changeset viewer.