Changeset 05eb8c in git


Ignore:
Timestamp:
Feb 23, 2009, 11:59:20 AM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
0b4ec23736ea7397c933af3e20429dd4017d8ffe
Parents:
6d5e7ee005c7a5c9c97446227e1b19c6ed68fc9a
Message:
*hannes: initenterpairsRing -> initenterpairs


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

Legend:

Unmodified
Added
Removed
  • kernel/kutil.cc

    r6d5e7ee r05eb8c  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kutil.cc,v 1.121 2009-02-22 17:37:55 Singular Exp $ */
     4/* $Id: kutil.cc,v 1.122 2009-02-23 10:59:20 Singular Exp $ */
    55/*
    66* ABSTRACT: kernel: utils for kStd
     
    28772877*(s[0],h),...,(s[k],h) will be put to the pairset L
    28782878*/
    2879 void initenterpairsRing (poly h,int k,int ecart,int isFromQ,kStrategy strat, int atR = -1)
    2880 {
    2881 
    2882   if ((strat->syzComp==0) || (pGetComp(h)<=strat->syzComp))
    2883   {
    2884     int j;
    2885     BOOLEAN new_pair=FALSE;
    2886 
    2887     if (pGetComp(h)==0)
    2888     {
    2889       /* for Q!=NULL: build pairs (f,q),(f1,f2), but not (q1,q2)*/
    2890       if ((isFromQ)&&(strat->fromQ!=NULL))
    2891       {
    2892         for (j=0; j<=k; j++)
    2893         {
    2894           if (!strat->fromQ[j])
    2895           {
    2896             new_pair=TRUE;
    2897             Print("TODO Oliver 1 --- j:%d, Ll:%d\n",j,strat->Ll);
    2898             enterOnePairRing(j,h,ecart,isFromQ,strat, atR);
    2899           }
    2900         }
    2901       }
    2902       else
    2903       {
    2904         new_pair=TRUE;
    2905         for (j=0; j<=k; j++)
    2906         {
    2907           // Print("j:%d, Ll:%d\n",j,strat->Ll);
    2908           enterOnePairRing(j,h,ecart,isFromQ,strat, atR);
    2909         }
    2910       }
    2911     }
    2912     else
    2913     {
    2914       for (j=0; j<=k; j++)
    2915       {
    2916         if ((pGetComp(h)==pGetComp(strat->S[j])) || (pGetComp(strat->S[j])==0))
    2917         {
    2918           new_pair=TRUE;
    2919           // Print("j:%d, Ll:%d\n",j,strat->Ll);
    2920           // Modules not checked right now
    2921           enterOnePairRing(j,h,ecart,isFromQ,strat, atR);
    2922         }
    2923       }
    2924     }
    2925 
    2926     if (new_pair) chainCritRing(h,ecart,strat);
    2927 
    2928   }
    2929 /*
    2930 ring r=256,(x,y,z),dp;
    2931 ideal I=12xz-133y, 2xy-z;
    2932 */
    2933 
    2934 }
    2935 
    2936 /*2
    2937 *(s[0],h),...,(s[k],h) will be put to the pairset L
    2938 */
    29392879void initenterstrongPairs (poly h,int k,int ecart,int isFromQ,kStrategy strat, int atR = -1)
    29402880{
     
    30893029    // enter also zero divisor * poly, if this is non zero and of smaller degree
    30903030    if (!(rField_is_Domain(currRing))) enterExtendedSpoly(h, strat);
    3091     initenterpairsRing(h, k, ecart, 0, strat, atR);
     3031    initenterpairs(h, k, ecart, 0, strat, atR);
    30923032    initenterstrongPairs(h, k, ecart, 0, strat, atR);
    30933033    clearSbatch(h, k, pos, strat);
     
    56015541  strat->enterOnePair=enterOnePairNormal;
    56025542  strat->chainCrit=chainCritNormal;
     5543#ifdef HAVE_RINGS
     5544  if (rField_is_Ring(currRing))
     5545  {
     5546    strat->enterOnePair=enterOnePairRing;
     5547    strat->chainCrit=chainCritRing;
     5548  }
     5549#endif
    56035550
    56045551  strat->sugarCrit =        TEST_OPT_SUGARCRIT;
Note: See TracChangeset for help on using the changeset viewer.