Changeset 441a2e in git for kernel


Ignore:
Timestamp:
Jul 26, 2011, 4:40:43 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
bf6a4d5920ef44ffb48d0fc83b4d53589111d60c
Parents:
b28bafedafd8d93bd2ff41d9466d46678bec1341
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-07-26 16:40:43+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:53:35+01:00
Message:
restore: mp_RecMin, mp_detBareiss -> matpol.cc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/ideals.cc

    rb28bafe r441a2e  
    543543        p = pCopy(tempstd->m[j]);
    544544      else
    545         p = prCopyR(tempstd->m[j], syz_ring);
     545        p = prCopyR(tempstd->m[j], syz_ring,currRing);
    546546      p_Shift(&p,-syzComp-isIdeal,currRing);
    547547      result->m[k] = p;
     
    694694  assume(currRing != NULL);
    695695  ring orig_ring=currRing;
    696   ring syz_ring=rAssure_SyzComp(orig_ring.TRUE);
     696  ring syz_ring=rAssure_SyzComp(orig_ring,TRUE);
    697697  rChangeCurrRing(syz_ring);
    698698
     
    702702  if (orig_ring != syz_ring)
    703703  {
    704     s_h1=idrCopyR_NoSort(h1,orig_ring);
     704    s_h1=idrCopyR_NoSort(h1,orig_ring,syz_ring);
    705705  }
    706706  else
     
    774774  )
    775775  {
    776     ring dp_C_ring = rCurrRingAssure_dp_C();
     776    ring dp_C_ring = rAssure_dp_C(syz_ring);
    777777    if (dp_C_ring != syz_ring)
     778    {
     779      rChangeCurrRing(dp_C_ring);
    778780      e = idrMoveR_NoSort(e, syz_ring, dp_C_ring);
     781    }
    779782    resolvente res = sySchreyerResolvente(e,-1,&length,TRUE, TRUE);
    780783    intvec * dummy = syBetti(res,length,&reg, *w);
     
    824827  if (orig_ring != syz_ring)
    825828  {
    826     s_h1=idrCopyR_NoSort(h1,orig_ring);
     829    s_h1=idrCopyR_NoSort(h1,orig_ring, syz_ring);
    827830  }
    828831  else
     
    898901
    899902  if (orig_ring != syz_ring)
    900     s_h1 = idrCopyR_NoSort(h1,orig_ring);
     903    s_h1 = idrCopyR_NoSort(h1,orig_ring,syz_ring);
    901904  else
    902905    s_h1 = h1;
     
    11061109  if (orig_ring != syz_ring)
    11071110  {
    1108     s_mod = idrCopyR_NoSort(mod,orig_ring);
    1109     s_temp = idrCopyR_NoSort(submod,orig_ring);
     1111    s_mod = idrCopyR_NoSort(mod,orig_ring,syz_ring);
     1112    s_temp = idrCopyR_NoSort(submod,orig_ring,syz_ring);
    11101113  }
    11111114  else
     
    12881291      if(pDivisibleBy(Q->m[j],p))
    12891292      {
    1290         poly p0=pDivideM(pHead(p),pHead(Q->m[j]));
     1293        poly p0=p_DivideM(pHead(p),pHead(Q->m[j]),currRing);
    12911294        if(w==NULL)
    12921295          p=pJet(pSub(p,ppMult_mm(Q->m[j],p0)),N);
     
    14601463
    14611464  ring orig_ring=currRing;
    1462   ring syz_ring=rAssure_SyzComp(orig_ring.TRUE);
     1465  ring syz_ring=rAssure_SyzComp(orig_ring,TRUE);
    14631466  rChangeCurrRing(syz_ring);
    14641467  rSetSyzComp(kmax-1,syz_ring);
     
    18061809          }
    18071810        }
    1808         p = mpDetBareiss(tmp);
     1811        p = mp_DetBareiss(tmp,currRing);
    18091812        if (p!=NULL)
    18101813        {
     
    18701873        }
    18711874      }
    1872       p = mpDetBareiss(tmp);
     1875      p = mp_DetBareiss(tmp,vcurrRing);
    18731876      if (p!=NULL)
    18741877      {
     
    19331936    return NULL;
    19341937  }
    1935   h = idMatrix2Module(mpCopy(a));
    1936   bound = smExpBound(h,c,r,ar);
     1938  h = idMatrix2Module(mp_Copy(a,currRing));
     1939  bound = sm_ExpBound(h,c,r,ar,currRing);
    19371940  idDelete(&h);
    1938   tmpR=smRingChange(&origR,bound);
     1941  tmpR=sm_RingChange(origR,bound);
    19391942  b = mpNew(r,c);
    19401943  for (i=r*c-1;i>=0;i--)
    19411944  {
    19421945    if (a->m[i])
    1943       b->m[i] = prCopyR(a->m[i],origR);
     1946      b->m[i] = prCopyR(a->m[i],origR,currRing);
    19441947  }
    19451948  if (R!=NULL)
    19461949  {
    1947     R = idrCopyR(R,origR);
     1950    R = idrCopyR(R,origR,currRing);
    19481951    //if (ar>1) // otherwise done in mpMinorToResult
    19491952    //{
     
    19601963  idSkipZeroes(result);
    19611964  rChangeCurrRing(origR);
    1962   result = idrMoveR(result,tmpR);
     1965  result = idrMoveR(result,tmpR,origR);
    19631966  smKillModifiedRing(tmpR);
    19641967  idTest(result);
Note: See TracChangeset for help on using the changeset viewer.