Changeset 9f5fca in git for kernel/kspoly.cc


Ignore:
Timestamp:
Dec 10, 2008, 8:48:51 PM (14 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
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
File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.