Changeset 0ffc823 in git for kernel/gr_kstd2.cc


Ignore:
Timestamp:
Feb 27, 2009, 8:30:47 PM (14 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
8066e80d7cea5de772f7b10b2b1930521cb72523
Parents:
f58aa61ada5934435d94d1d486fb70912543c11a
Message:
*levandov: early unit detection in rational GB


git-svn-id: file:///usr/local/Singular/svn/trunk@11495 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/gr_kstd2.cc

    rf58aa6 r0ffc823  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gr_kstd2.cc,v 1.35 2009-02-27 16:56:51 levandov Exp $ */
     4/* $Id: gr_kstd2.cc,v 1.36 2009-02-27 19:30:47 levandov Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: noncomm. alg. of Buchberger
     
    11901190      /* enter P.p into s and L */
    11911191      {
     1192/* quick unit detection in the rational case */
     1193#ifdef HAVE_RATGRING
     1194        if( rIsRatGRing(currRing) )
     1195        {
     1196          if ( p_LmIsConstantRat(strat->P.p, currRing) )
     1197          {
     1198#ifdef PDEBUG
     1199             Print("unit element detected:");
     1200             p_wrp(strat->P.p,currRing);
     1201#endif
     1202            p_Delete(&strat->P.p,currRing, strat->tailRing);
     1203            strat->P.p = pOne();
     1204          }
     1205      }
     1206#endif
    11921207        strat->P.sev=0;
    11931208        int pos=posInS(strat,strat->sl,strat->P.p, strat->P.ecart);
Note: See TracChangeset for help on using the changeset viewer.