Changeset 8e2c77 in git for kernel


Ignore:
Timestamp:
Oct 11, 2022, 3:35:34 PM (19 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
6469c282bedf5898b267f26f0af5ad47b00729aa
Parents:
4cf1180106290c8ffa0f19cc40e6b396523235d1
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2022-10-11 15:35:34+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2022-10-11 15:55:31+02:00
Message:
fix: redMoraNF/redMoraNFRing: n_DivBy nad SubringGCD
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/kstd1.cc

    r4cf118 r8e2c77  
    10471047        * we have to reduce with bad ecart: H has to enter in T
    10481048        */
    1049         doRed(&H,&(strat->T[ii]),TRUE,strat,TRUE);
    1050         if (H.p == NULL)
    1051           return NULL;
     1049        LObject L= H;
     1050        L.Copy();
     1051        H.GetP();
     1052        H.length=H.pLength=pLength(H.p);
     1053        ksReducePoly(&L, &(strat->T[ii]), strat->kNoetherTail(), NULL, NULL, strat,
     1054                            (flag & KSTD_NF_NONORM)==0);
     1055        enterT(H,strat);
     1056        H = L;
    10521057      }
    10531058      else
     
    10561061        * we reduce with good ecart, h need not to be put to T
    10571062        */
    1058         doRed(&H,&(strat->T[ii]),FALSE,strat,TRUE);
    1059         if (H.p == NULL)
    1060           return NULL;
    1061       }
     1063        ksReducePoly(&H, &(strat->T[ii]), strat->kNoetherTail(), NULL, NULL, strat,
     1064                            (flag & KSTD_NF_NONORM)==0);
     1065      }
     1066      if (H.p == NULL)
     1067        return NULL;
    10621068      /*- try to reduce the s-polynomial -*/
    10631069      o = H.SetpFDeg();
    1064       if ((flag &2 ) == 0) cancelunit(&H,TRUE);
     1070      if ((flag & KSTD_NF_ECART) == 0) cancelunit(&H,TRUE);
    10651071      H.ecart = currRing->pLDeg(H.p,&(H.length),currRing)-o;
    10661072      j = 0;
     
    10851091    int o = H.SetpFDeg();
    10861092    H.ecart = currRing->pLDeg(H.p,&H.length,currRing)-o;
    1087     if ((flag & 2) == 0) cancelunit(&H,TRUE);
     1093    if ((flag & KSTD_NF_ECART) == 0) cancelunit(&H,TRUE);
    10881094    H.sev = pGetShortExpVector(H.p);
    10891095    unsigned long not_sev = ~ H.sev;
     
    11801186                 * we have to reduce with bad ecart: H has to enter in T
    11811187                 */
    1182                 doRed(&H,&(strat->T[ii]),TRUE,strat,TRUE);
    1183                 if (H.p == NULL)
    1184                     return NULL;
     1188              LObject L= H;
     1189              L.Copy();
     1190              H.GetP();
     1191              H.length=H.pLength=pLength(H.p);
     1192              ksReducePoly(&L, &(strat->T[ii]), strat->kNoetherTail(), NULL, NULL, strat,
     1193                            (flag & KSTD_NF_NONORM)==0);
     1194              enterT_strong(H,strat);
     1195              H = L;
    11851196            }
    11861197            else
     
    11891200                 * we reduce with good ecart, h need not to be put to T
    11901201                 */
    1191                 doRed(&H,&(strat->T[ii]),FALSE,strat,TRUE);
    1192                 if (H.p == NULL)
    1193                     return NULL;
     1202                ksReducePoly(&H, &(strat->T[ii]), strat->kNoetherTail(), NULL, NULL, strat,
     1203                            (flag & KSTD_NF_NONORM)==0);
    11941204            }
     1205            if (H.p == NULL)
     1206              return NULL;
    11951207            /*- try to reduce the s-polynomial -*/
    11961208            o = H.SetpFDeg();
     
    23582370        if(rField_is_Ring(currRing))
    23592371        {
    2360           p = redMoraNFRing(p,strat, lazyReduce & KSTD_NF_ECART);
     2372          p = redMoraNFRing(p,strat, lazyReduce);
    23612373        }
    23622374        else
    2363           p = redMoraNF(p,strat, lazyReduce & KSTD_NF_ECART);
     2375          p = redMoraNF(p,strat, lazyReduce);
    23642376        if ((p!=NULL)&&((lazyReduce & KSTD_NF_LAZY)==0))
    23652377        {
Note: See TracChangeset for help on using the changeset viewer.