Changeset 045cbe in git for kernel


Ignore:
Timestamp:
May 17, 2016, 3:13:45 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f8fb93d1bc922d1e97207d1d5b347fe1db1eedcf
Parents:
33a3e5b152a664e98e61d5eb3db725d8b4fc1756
Message:
doc: index "factorization" for primefactors
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd2.cc

    r33a3e5b r045cbe  
    16931693#ifdef KDEBUG
    16941694      if (TEST_OPT_DEBUG){PrintS("new s:");strat->P.wrp();PrintLn();}
     1695#if MYTEST
     1696      PrintS("New (reduced) S: "); p_DebugPrint(strat->P.p, currRing); PrintLn();
     1697#endif /* MYTEST */
    16951698#endif /* KDEBUG */
    16961699
     
    17461749#endif
    17471750      }
    1748     }
    1749     if (strat->P.lcm!=NULL)
    1750     {
     1751      if (strat->s_poly!=NULL)
     1752      {
     1753        if (strat->s_poly(strat))
     1754        {
     1755          // we are called AFTER enterS, i.e. if we change P
     1756          // we have it also to S/T
     1757          // and add pairs
     1758          int pos=posInS(strat,strat->sl,strat->P.p,strat->P.ecart);
     1759          enterT(strat->P, strat);
     1760          #ifdef HAVE_RINGS
     1761          if (rField_is_Ring(currRing))
     1762            superenterpairs(strat->P.p,strat->sl,strat->P.ecart,pos,strat, strat->tl);
     1763          else
     1764          #endif
     1765            enterpairs(strat->P.p,strat->sl,strat->P.ecart,pos,strat, strat->tl);
     1766          strat->enterS(strat->P, pos, strat, strat->tl);
     1767        }
     1768      }
     1769      #if ADIDEBUG
     1770      for(int iii = 0; iii<=strat->tl;iii++)
     1771      {
     1772        printf("\nT[%i] = ",iii);pWrite(strat->T[iii].p);
     1773      }
     1774      #endif
     1775
     1776      if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat);
     1777//      Print("[%d]",hilbeledeg);
     1778      if (strat->P.lcm!=NULL)
    17511779#ifdef HAVE_RINGS
    1752       if (rField_is_Ring(currRing)) pLmDelete(strat->P.lcm);
    1753       else
     1780        pLmDelete(strat->P.lcm);
    17541781#else
    17551782        pLmFree(strat->P.lcm);
    17561783#endif
    1757         strat->P.lcm=NULL;
    1758     }
    1759     if ((red_result==1) && (strat->s_poly!=NULL))
    1760     {
    1761       // the only valid entries are: strat->P.p,
    1762       // strat->tailRing (read-only, keep it)
    1763       // (and P->p1, P->p2 (read-only, must set to NULL if P.p is changed)
    1764       if (strat->s_poly(strat))
    1765       {
    1766         // we are called AFTER enterS, i.e. if we change P
    1767         // we have to add it also to S/T
    1768         // and add pairs
    1769         int pos=posInS(strat,strat->sl,strat->P.p,strat->P.ecart);
    1770         enterT(strat->P, strat);
    1771         #ifdef HAVE_RINGS
    1772         if (rField_is_Ring(currRing))
    1773           superenterpairs(strat->P.p,strat->sl,strat->P.ecart,pos,strat, strat->tl);
    1774         else
    1775         #endif
    1776           enterpairs(strat->P.p,strat->sl,strat->P.ecart,pos,strat, strat->tl);
    1777         strat->enterS(strat->P, pos, strat, strat->tl);
    1778       }
    1779     }
    1780 
    1781       if (hilb!=NULL) khCheck(Q,w,hilb,hilbeledeg,hilbcount,strat);
    1782 //      Print("[%d]",hilbeledeg);
    17831784    }
    17841785    else if (strat->P.p1 == NULL && strat->minim > 0)
Note: See TracChangeset for help on using the changeset viewer.