Changeset a27116 in git for libpolys


Ignore:
Timestamp:
Mar 21, 2017, 2:09:16 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
109c06aba8e3ec0ed23238ce974bfbfda140184c
Parents:
366350fb915b4c50ed8408c25dca87c8fe414d12
Message:
add: rHasTDeg (ring.cc)
Location:
libpolys/polys/monomials
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    r366350 ra27116  
    44374437}
    44384438
     4439BOOLEAN rHasTDeg(ring r)
     4440{
     4441  int i;
     4442  if (r->typ!=NULL)
     4443  {
     4444    for(i=r->OrdSize-1;i>=0;i--)
     4445    {
     4446      if ((r->typ[i].ord_typ==ro_dp)
     4447      && (r->typ[i].data.dp.start==1)
     4448      && (r->typ[i].data.dp.end==r->N))
     4449      {
     4450        return TRUE;
     4451      }
     4452    }
     4453  }
     4454  return FALSE;
     4455}
     4456
    44394457ring rAssure_TDeg(ring r, int &pos)
    44404458{
     
    44894507  res->typ[res->OrdSize-1].data.dp.place=res->ExpL_Size-1;
    44904508  pos=res->ExpL_Size-1;
    4491   res->pOrdIndex=pos;
     4509  //res->pOrdIndex=pos; //NO: think of a(1,0),dp !
    44924510  extern void p_Setm_General(poly p, ring r);
    44934511  res->p_Setm=p_Setm_General;
  • libpolys/polys/monomials/ring.h

    r366350 ra27116  
    734734ring   rAssure_SyzComp_CompLastBlock(const ring r, BOOLEAN complete = TRUE);
    735735ring   rAssure_TDeg(const ring r, int &pos);
     736BOOLEAN rHasTDeg(const ring r);
    736737
    737738/// return the max-comonent wchich has syzIndex i
Note: See TracChangeset for help on using the changeset viewer.