Changeset ba0fc3 in git for libpolys/polys/monomials/p_polys.cc
- Timestamp:
- Mar 22, 2011, 10:36:05 AM (12 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- c462b558d2bcc56ce39d2181b2f9d9cd1b82345b
- Parents:
- f550e863b5113c076c1fa29a44f2bde2146f14cf
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-03-22 10:36:05+01:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:04:09+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
rf550e86 rba0fc3 518 518 } 519 519 return j; 520 } 521 522 long p_DegW(poly p, const short *w, const ring R) 523 { 524 long r=~0L; 525 526 while (p!=NULL) 527 { 528 long t=totaldegreeWecart_IV(p,R,w); 529 if (t>r) r=t; 530 pIter(p); 531 } 532 return r; 520 533 } 521 534 … … 3428 3441 } 3429 3442 3443 /*************************************************************/ 3444 int p_MinDeg(poly p,intvec *w, const ring R) 3445 { 3446 if(p==NULL) 3447 return -1; 3448 int d=-1; 3449 while(p!=NULL) 3450 { 3451 int d0=0; 3452 for(int j=0;j<rVar(R);j++) 3453 if(w==NULL||j>=w->length()) 3454 d0+=p_GetExp(p,j+1,R); 3455 else 3456 d0+=(*w)[j]*p_GetExp(p,j+1,R); 3457 if(d0<d||d==-1) 3458 d=d0; 3459 pIter(p); 3460 } 3461 return d; 3462 } 3463 3430 3464 /*************************************************************** 3431 3465 *
Note: See TracChangeset
for help on using the changeset viewer.