Changeset 088819 in git
- Timestamp:
- Nov 18, 2022, 5:33:04 PM (3 months ago)
- Branches:
- (u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
- Children:
- 611e44bcd2cebe0cc0335a1014d84b8f0852c076
- Parents:
- 6b9ca3fd3f47ded031acfb1b3a0e3af5be72b106
- Files:
-
- 3 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, -
libpolys/polys/monomials/p_polys.h
r6b9ca3 r088819 1668 1668 #ifdef HAVE_RINGS 1669 1669 // This is the equivalent of pLmCmp(p,q) != -currRing->OrdSgn for rings 1670 // It is used in posIn LRing and posInTRing1670 // It is used in posInTRing 1671 1671 static inline int p_LtCmpOrdSgnDiffM(poly p, poly q, const ring r) 1672 1672 { … … 1677 1677 #ifdef HAVE_RINGS 1678 1678 // This is the equivalent of pLmCmp(p,q) != currRing->OrdSgn for rings 1679 // It is used in posIn LRing and posInTRing1679 // It is used in posInTRing 1680 1680 static inline int p_LtCmpOrdSgnDiffP(poly p, poly q, const ring r) 1681 1681 { … … 1693 1693 #ifdef HAVE_RINGS 1694 1694 // This is the equivalent of pLmCmp(p,q) == -currRing->OrdSgn for rings 1695 // It is used in posIn LRing and posInTRing1695 // It is used in posInTRing 1696 1696 static inline int p_LtCmpOrdSgnEqM(poly p, poly q, const ring r) 1697 1697 { … … 1702 1702 #ifdef HAVE_RINGS 1703 1703 // This is the equivalent of pLmCmp(p,q) == currRing->OrdSgn for rings 1704 // It is used in posIn LRing and posInTRing1704 // It is used in posInTRing 1705 1705 static inline int p_LtCmpOrdSgnEqP(poly p, poly q, const ring r) 1706 1706 {
Note: See TracChangeset
for help on using the changeset viewer.