Changeset 9f5fca in git


Ignore:
Timestamp:
Dec 10, 2008, 8:48:51 PM (15 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
18c24555fbf92664b228c6d8d5ea653490aef960
Parents:
1dfd7613337c8c2ac8c4636dda564d8899289dbd
Message:
*levandov: shrinking in nonhomog letterplace


git-svn-id: file:///usr/local/Singular/svn/trunk@11235 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/kspoly.cc

    r1dfd761 r9f5fca  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kspoly.cc,v 1.15 2008-06-25 11:27:31 Singular Exp $ */
     4/* $Id: kspoly.cc,v 1.16 2008-12-10 19:48:51 levandov Exp $ */
    55/*
    66*  ABSTRACT -  Routines for Spoly creation and reductions
     
    138138  assume(PW->GetpLength() == pLength(PW->p != NULL ? PW->p : PW->t_p));
    139139  PR->LmDeleteAndIter();
     140
     141  // the following is commented out: shrinking
     142#ifdef HAVE_SHIFTBBA_NONEXISTENT
     143  if ( (currRing->isLPring) && (!strat->homog) )
     144  {
     145    // assume? h->p in currRing
     146    PR->GetP();
     147    poly qq = p_Shrink(PR->p, currRing->isLPring, currRing);
     148    PR->Clear(); // does the right things
     149    PR->p = qq;
     150    PR->t_p = NULL;
     151    PR->SetShortExpVector();
     152  }
     153#endif
     154 
    140155#if defined(KDEBUG) && defined(TEST_OPT_DEBUG_RED)
    141156  if (TEST_OPT_DEBUG)
     
    251266    }
    252267  }
     268
     269  // the following is commented out: shrinking
     270#ifdef HAVE_SHIFTBBA_NONEXISTENT
     271  if (currRing->isLPring)
     272  {
     273    // assume? h->p in currRing
     274    Pair->GetP();
     275    poly qq = p_Shrink(Pair->p, currRing->isLPring, currRing);
     276    Pair->Clear(); // does the right things
     277    Pair->p = qq;
     278    Pair->t_p = NULL;
     279    Pair->SetShortExpVector();
     280  }
     281#endif
     282
    253283}
    254284
     
    291321  if (Lp == Save)
    292322    With.Delete();
     323
     324  // the following is commented out: shrinking
     325#ifdef HAVE_SHIFTBBA_NONEXISTENT
     326  if (currRing->isLPring)
     327  {
     328    // assume? h->p in currRing
     329    PR->GetP();
     330    poly qq = p_Shrink(PR->p, currRing->isLPring, currRing);
     331    PR->Clear(); // does the right things
     332    PR->p = qq;
     333    PR->t_p = NULL;
     334    PR->SetShortExpVector();
     335  }
     336#endif
     337
    293338  return ret;
    294339}
  • kernel/kstd2.cc

    r1dfd761 r9f5fca  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd2.cc,v 1.77 2008-11-12 16:07:45 Singular Exp $ */
     4/* $Id: kstd2.cc,v 1.78 2008-12-10 19:48:51 levandov Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: alg. of Buchberger
     
    14201420    {
    14211421      strat->P.GetP(strat->lmBin); // because shifts are counted with .p structure
    1422       /* assume strat->P.t_p != NULL */
    14231422      /* in the nonhomog case we have to shrink the polynomial */
    14241423      assume(strat->P.t_p!=NULL);
     
    16601659
    16611660  /* check whether the ideal is in V */
    1662   if (! ideal_isInV(I,lVblock) )
    1663   {
    1664     PrintS("ERROR: The input ideal contains incorrectly encoded elements! ");
     1661
     1662  if (0)
     1663  //  if (! ideal_isInV(I,lVblock) )
     1664  {
     1665    WerrorS("The input ideal contains incorrectly encoded elements! ");
    16651666    return(NULL);
    16661667  }
     
    17191720#endif
    17201721    ksReducePoly(h, &(strat->T[j]), strat->kNoetherTail(), NULL, strat);
     1722
    17211723#ifdef KDEBUG
    17221724    if (TEST_OPT_DEBUG)
Note: See TracChangeset for help on using the changeset viewer.