- Timestamp:
- Nov 18, 2022, 5:33:04 PM (18 months ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 611e44bcd2cebe0cc0335a1014d84b8f0852c076
- Parents:
- 6b9ca3fd3f47ded031acfb1b3a0e3af5be72b106
- Location:
- kernel/GBEngine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kutil.cc
r6b9ca3 r088819 5941 5941 en = i; 5942 5942 } 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 loop5960 {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 else5972 {5973 if(set[an].GetpLength() == p->GetpLength())5974 {5975 if(nGreater(set[an].p->coef, p->p->coef))5976 return en;5977 else5978 return an;5979 }5980 else5981 {5982 return an;5983 }5984 }5985 }5986 else5987 return an;5988 }5989 i=(an+en) / 2;5990 if (set[i].FDeg > p->FDeg)5991 an=i;5992 else5993 {5994 if(set[i].FDeg == p->FDeg)5995 {5996 if(set[i].GetpLength() > p->GetpLength())5997 an=i;5998 else5999 {6000 if(set[i].GetpLength() == p->GetpLength())6001 {6002 if(nGreater(set[i].p->coef, p->p->coef))6003 an = i;6004 else6005 en = i;6006 }6007 else6008 {6009 en=i;6010 }6011 }6012 }6013 else6014 en=i;6015 5943 } 6016 5944 } … … 9960 9888 #ifdef HAVE_RINGS 9961 9889 || pos_in_l == posInL110Ring 9962 || pos_in_l == posInLRing9963 9890 #endif 9964 9891 ) -
kernel/GBEngine/kutil.h
r6b9ca3 r088819 462 462 int posInLSigRing (const LSet set, const int length, 463 463 LObject* L,const kStrategy strat); 464 int posInLRing (const LSet set, const int length,465 LObject* L,const kStrategy strat);466 464 int posInSyz (const kStrategy strat, const poly sig); 467 465 int posInL0 (const LSet set, const int length,
Note: See TracChangeset
for help on using the changeset viewer.