Changeset 088819 in git for kernel


Ignore:
Timestamp:
Nov 18, 2022, 5:33:04 PM (18 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
611e44bcd2cebe0cc0335a1014d84b8f0852c076
Parents:
6b9ca3fd3f47ded031acfb1b3a0e3af5be72b106
Message:
removed: posInLRing
Location:
kernel/GBEngine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kutil.cc

    r6b9ca3 r088819  
    59415941            en = i;
    59425942       }
    5943     }
    5944   }
    5945 }
    5946 
    5947 int posInLRing (const LSet set, const int length,
    5948                LObject* p,const kStrategy /*strat*/)
    5949 {
    5950   if (length < 0) return 0;
    5951   if (set[length].FDeg > p->FDeg)
    5952         return length+1;
    5953   if (set[length].FDeg == p->FDeg)
    5954     if(set[length].GetpLength() > p->GetpLength())
    5955           return length+1;
    5956   int i;
    5957   int an = 0;
    5958   int en= length+1;
    5959   loop
    5960   {
    5961     if (an >= en-1)
    5962     {
    5963       if(an == en)
    5964         return en;
    5965       if (set[an].FDeg > p->FDeg)
    5966         return en;
    5967       if(set[an].FDeg == p->FDeg)
    5968       {
    5969         if(set[an].GetpLength() > p->GetpLength())
    5970           return en;
    5971         else
    5972         {
    5973           if(set[an].GetpLength() == p->GetpLength())
    5974           {
    5975             if(nGreater(set[an].p->coef, p->p->coef))
    5976               return en;
    5977             else
    5978               return an;
    5979           }
    5980           else
    5981           {
    5982             return an;
    5983           }
    5984         }
    5985       }
    5986       else
    5987         return an;
    5988     }
    5989     i=(an+en) / 2;
    5990     if (set[i].FDeg > p->FDeg)
    5991       an=i;
    5992     else
    5993     {
    5994       if(set[i].FDeg == p->FDeg)
    5995       {
    5996         if(set[i].GetpLength() > p->GetpLength())
    5997           an=i;
    5998         else
    5999         {
    6000           if(set[i].GetpLength() == p->GetpLength())
    6001           {
    6002             if(nGreater(set[i].p->coef, p->p->coef))
    6003               an = i;
    6004             else
    6005               en = i;
    6006           }
    6007           else
    6008           {
    6009             en=i;
    6010           }
    6011         }
    6012       }
    6013       else
    6014         en=i;
    60155943    }
    60165944  }
     
    99609888  #ifdef HAVE_RINGS
    99619889  ||  pos_in_l == posInL110Ring
    9962   ||  pos_in_l == posInLRing
    99639890  #endif
    99649891  )
  • kernel/GBEngine/kutil.h

    r6b9ca3 r088819  
    462462int posInLSigRing (const LSet set, const int length,
    463463               LObject* L,const kStrategy strat);
    464 int posInLRing (const LSet set, const int length,
    465                LObject* L,const kStrategy strat);
    466464int posInSyz (const kStrategy strat, const poly sig);
    467465int posInL0 (const LSet set, const int length,
Note: See TracChangeset for help on using the changeset viewer.