Changeset 99bdcf in git for kernel/p_polys.cc


Ignore:
Timestamp:
Aug 3, 2010, 7:25:10 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
9053a74f3bbb046a786d061474c8bd82302c42c3
Parents:
11ca48d1c9122a424d601a3ee5e6544661d36ee2
Message:
pTotaldegree/p_Totaldegree

git-svn-id: file:///usr/local/Singular/svn/trunk@13084 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/p_polys.cc

    r11ca48 r99bdcf  
    356356{
    357357  p_LmCheckPolyRing(p, r);
    358   p->exp[r->pOrdIndex] = p_ExpVectorQuerSum(p, r);
     358  p->exp[r->pOrdIndex] = p_Totaldegree(p, r);
    359359}
    360360
     
    398398  assume(p_GetOrder(a, r) == pWTotaldegree(a, r));
    399399  return p_GetOrder(a, r);
    400 }
    401 
    402 /*2
    403 * compute the degree of the leading monomial of p
    404 * with respect to weigths 1
    405 * (all are 1 so save multiplications or they are of different signs)
    406 * the ordering is not compatible with degree so do not use p->Order
    407 */
    408 long pTotaldegree(poly p, const ring r)
    409 {
    410   p_LmCheckPolyRing(p, r);
    411   return (long)p_ExpVectorQuerSum(p, r);
    412400}
    413401
     
    524512long pWDegree(poly p, const ring r)
    525513{
    526   if (r->firstwv==NULL) return pTotaldegree(p, r);
     514  if (r->firstwv==NULL) return p_Totaldegree(p, r);
    527515  p_LmCheckPolyRing(p, r);
    528516  int i, k;
     
    794782  long  t,max;
    795783
    796   max=p_ExpVectorQuerSum(p, r);
     784  max=p_Totaldegree(p, r);
    797785  if (k > 0)
    798786  {
    799787    while (((p=pNext(p))!=NULL) && (p_GetComp(p, r)==k))
    800788    {
    801       t=p_ExpVectorQuerSum(p, r);
     789      t=p_Totaldegree(p, r);
    802790      if (t>max) max=t;
    803791      ll++;
     
    808796    while ((p=pNext(p))!=NULL)
    809797    {
    810       t=p_ExpVectorQuerSum(p, r);
     798      t=p_Totaldegree(p, r);
    811799      if (t>max) max=t;
    812800      ll++;
     
    823811  long  t,max;
    824812
    825   max=p_ExpVectorQuerSum(p, r);
     813  max=p_Totaldegree(p, r);
    826814  if (rIsSyzIndexRing(r))
    827815  {
     
    831819      if (p_GetComp(p, r)<=limit)
    832820      {
    833         if ((t=p_ExpVectorQuerSum(p, r))>max) max=t;
     821        if ((t=p_Totaldegree(p, r))>max) max=t;
    834822        ll++;
    835823      }
     
    841829    while ((p=pNext(p))!=NULL)
    842830    {
    843       if ((t=p_ExpVectorQuerSum(p, r))>max) max=t;
     831      if ((t=p_Totaldegree(p, r))>max) max=t;
    844832      ll++;
    845833    }
     
    894882      if (p_GetComp(p, r)<=limit)
    895883      {
    896         if ((t=p_ExpVectorQuerSum(p, r))>max) max=t;
     884        if ((t=p_Totaldegree(p, r))>max) max=t;
    897885        ll++;
    898886      }
     
    904892    while ((p=pNext(p))!=NULL)
    905893    {
    906       if ((t=p_ExpVectorQuerSum(p, r))>max) max=t;
     894      if ((t=p_Totaldegree(p, r))>max) max=t;
    907895      ll++;
    908896    }
Note: See TracChangeset for help on using the changeset viewer.