Changeset 920c78 in git


Ignore:
Timestamp:
Feb 21, 2013, 12:28:47 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cbf866d4f8c3861325311c042cb2033c053453b2')
Children:
dd290f48322737d7fcc47f0fb8ea2059467097c0
Parents:
741554096f6e1c32424aa54a787cf2189c64a62b
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-21 12:28:47+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-21 12:29:31+01:00
Message:
Fixed p_DegW (minimal degree -1?!)
File:
1 edited

Legend:

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

    r7415540 r920c78  
    692692long p_DegW(poly p, const short *w, const ring R)
    693693{
    694   long r=~0L;
    695 
    696   while (p!=NULL)
    697   {
    698     long t=totaldegreeWecart_IV(p,R,w);
    699     if (t>r) r=t;
    700     pIter(p);
    701   }
     694  assume( p_Test(p, R) );
     695  assume( w != NULL );
     696   
     697  if( p == NULL ) // TODO: ???
     698     return -1;
     699   
     700  long r = totaldegreeWecart_IV(p, R, w); pIter(p);
     701
     702  for ( ; p!=NULL; pIter(p) )
     703  {
     704    const long t = totaldegreeWecart_IV(p, R, w);
     705    if (t > r) r = t;
     706  }
     707   
    702708  return r;
    703709}
Note: See TracChangeset for help on using the changeset viewer.