Changeset 1af8ad in git for libpolys/polys/monomials/p_polys.cc
- Timestamp:
- Mar 25, 2021, 2:21:44 PM (3 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
- Children:
- 281f9f2840a2fc658c50cae0b1a737435786544d
- Parents:
- c16bdef35175b236a3d32ddd0a323bd2a93183dd280aeceb2daee09b3e9e0ac398edcd7ec3ad779a
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2021-03-25 14:21:44+01:00
- git-committer:
- GitHub <noreply@github.com>2021-03-25 14:21:44+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/monomials/p_polys.cc
r280aec r1af8ad 683 683 } 684 684 685 long p_DegW(poly p, const short *w, const ring R)685 long p_DegW(poly p, const int *w, const ring R) 686 686 { 687 687 p_Test(p, R); … … 4427 4427 } 4428 4428 4429 poly pp_JetW(poly p, int m, short *w, const ring R)4429 poly pp_JetW(poly p, int m, int *w, const ring R) 4430 4430 { 4431 4431 poly r=NULL; … … 4454 4454 } 4455 4455 4456 poly p_JetW(poly p, int m, short *w, const ring R)4456 poly p_JetW(poly p, int m, int *w, const ring R) 4457 4457 { 4458 4458 while((p!=NULL) && (totaldegreeWecart_IV(p,R,w)>m)) p_LmDelete(&p,R); … … 4501 4501 if(n==0) 4502 4502 return v; 4503 short *ww=iv2array(w,R);4503 int *ww=iv2array(w,R); 4504 4504 poly u1=p_JetW(p_Sub(p_One(R),__p_Mult_nn(u,u0,R),R),n,ww,R); 4505 4505 if(u1==NULL) 4506 4506 { 4507 omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof( short));4507 omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof(int)); 4508 4508 return v; 4509 4509 } … … 4517 4517 p_Delete(&u1,R); 4518 4518 p_Delete(&v1,R); 4519 omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof( short));4519 omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof(int)); 4520 4520 return v; 4521 4521 } … … 4524 4524 poly p_Series(int n,poly p,poly u, intvec *w, const ring R) 4525 4525 { 4526 short *ww=iv2array(w,R);4526 int *ww=iv2array(w,R); 4527 4527 if(p!=NULL) 4528 4528 { … … 4532 4532 p=p_JetW(p_Mult_q(p,p_Invers(n-p_MinDeg(p,w,R),u,w,R),R),n,ww,R); 4533 4533 } 4534 omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof( short));4534 omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof(int)); 4535 4535 return p; 4536 4536 }
Note: See TracChangeset
for help on using the changeset viewer.