Changeset 1bc7201 in git for kernel/syz2.cc


Ignore:
Timestamp:
Oct 19, 2012, 6:38:35 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
c879eea1669e963fb4c7287a3963abb287d00a49
Parents:
b37b3984a12e1552c7bafc9fd5a7849240ea79806bbe944402dfca102dcc3e036c4f2f119be41e44
Message:
Merge pull request #192 from mmklee/algExtGCD_sw

Alg ext gcd sw
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/syz2.cc

    r6bbe94 r1bc7201  
    7575            int actdeg)
    7676{
    77   SSet temp;
    7877  SObject tso;
    79   poly toHandle,tsyz=NULL,p,pp;
     78  poly toHandle,p,pp;
    8079  int r1,r2=0,rr,l=(*syzstr->Tl)[index];
    8180  int i,j,r=0,ti;
     
    8584#endif
    8685  actdeg += index;
    87   long * ShiftedComponents = syzstr->ShiftedComponents[index-1];
    88   int* Components = syzstr->truecomponents[index-1];
    8986
    9087  while ((l>0) && ((syzstr->resPairs[index])[l-1].lcm==NULL)) l--;
     
    119116      {
    120117        if (((syzstr->resPairs[index])[i].p!=NULL) &&
    121             (pGetComp((syzstr->resPairs[index])[i].p)==tc))
     118            (pGetComp((syzstr->resPairs[index])[i].p)==(unsigned)tc))
    122119        {
    123120#ifdef USE_CHAINCRIT
     
    506503{
    507504  int i,j,k=IDELEMS(syzstr->res[index]);
    508   int ks=IDELEMS(syzstr->res[index+1]),kk,l,ll;
     505  int ks=IDELEMS(syzstr->res[index+1]),kk;
    509506  int ks1=IDELEMS(syzstr->orderedRes[index+1]);
    510507  int kres=(*syzstr->Tl)[index];
    511508  int toGo=0;
    512509  int il;
    513   number coefgcd,n;
    514510  SSet redset=syzstr->resPairs[index];
    515   poly p=NULL,q,tp;
     511  poly q;
    516512  intvec *spl1;
    517513  SObject tso;
     
    522518  int step=1,jj,j1,j2;
    523519#endif
    524   long * ShiftedComponents = syzstr->ShiftedComponents[index];
    525   int* Components = syzstr->truecomponents[index];
    526   assume(Components != NULL && ShiftedComponents != NULL);
    527   BOOLEAN need_reset;
     520  assume((syzstr->truecomponents[index]) != NULL && (syzstr->ShiftedComponents[index]) != NULL);
    528521
    529522  actord += index;
     
    858851{
    859852  ideal res=syzstr->res[1];
    860   int i=0,j,k=IDELEMS(res),k1=IDELEMS(syzstr->orderedRes[1]);
    861   SSet sPairs1=syzstr->resPairs[1];
     853  int i=0,k=IDELEMS(res),k1=IDELEMS(syzstr->orderedRes[1]);
    862854  SSet sPairs=syzstr->resPairs[0];
    863855
     
    964956syStrategy syHilb(ideal arg,int * length)
    965957{
    966   int i,j,actdeg=32000,index=0,reg=-1;
    967   int startdeg,howmuch,toSub=0;
     958  int i,j,actdeg=32000,index=0;
     959  int howmuch,toSub=0;
    968960  int maxindex=0,maxdeg=0;
    969961  ideal temp=NULL;
     
    10281020  syzstr->bucket = kBucketCreate(currRing);
    10291021  syzstr->syz_bucket = kBucketCreate(currRing);
    1030   startdeg = actdeg;
    10311022  nextPairs = syChosePairs(syzstr,&index,&howmuch,&actdeg);
    10321023/*--- computes the resolution ----------------------*/
Note: See TracChangeset for help on using the changeset viewer.