- Timestamp:
- Mar 25, 2021, 2:23:27 PM (3 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 2daaaec2c36328eb8638fe3a6b61d9971c661dc4a20705c8fb93aca8b6012f0ce5d37cabe617a1df
- Parents:
- 1af8ade1094b290d5ad768f26152741bea96d16671ef94c332207ebe0806ef545254939c51de3f38
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2021-03-25 14:23:27+01:00
- git-committer:
- GitHub <noreply@github.com>2021-03-25 14:23:27+01:00
- Location:
- libpolys
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/configure.ac
r1af8ad r281f9f 54 54 GMP_HOME_PATH="${DEFAULT_CHECKING_PATH}" 55 55 elif test "$with_gmp" != no ; then 56 GMP_HOME_PATH="$with_gmp ${DEFAULT_CHECKING_PATH}"56 GMP_HOME_PATH="$with_gmp" 57 57 fi 58 58 else -
libpolys/polys/monomials/p_polys.cc
r71ef94c r281f9f 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 } -
libpolys/polys/monomials/p_polys.h
r71ef94c r281f9f 73 73 int p_MinDeg(poly p,intvec *w, const ring R); 74 74 75 long p_DegW(poly p, const short *w, const ring R);75 long p_DegW(poly p, const int *w, const ring R); 76 76 77 77 /// return TRUE if all monoms have the same component … … 2098 2098 poly pp_Jet(poly p, int m, const ring R); 2099 2099 poly p_Jet(poly p, int m,const ring R); 2100 poly pp_JetW(poly p, int m, short *w, const ring R);2101 poly p_JetW(poly p, int m, short *w, const ring R);2100 poly pp_JetW(poly p, int m, int *w, const ring R); 2101 poly p_JetW(poly p, int m, int *w, const ring R); 2102 2102 2103 2103 poly n_PermNumber(const number z, const int *par_perm, const int OldPar, const ring src, const ring dst); -
libpolys/polys/simpleideals.cc
r71ef94c r281f9f 1556 1556 else 1557 1557 { 1558 short *w=iv2array(iv,R);1558 int *w=iv2array(iv,R); 1559 1559 int k; 1560 1560 for(k=0; k<IDELEMS(i); k++) … … 1562 1562 r->m[k]=pp_JetW(i->m[k],d,w,R); 1563 1563 } 1564 omFreeSize((ADDRESS)w,(rVar(R)+1)*sizeof( short));1564 omFreeSize((ADDRESS)w,(rVar(R)+1)*sizeof(int)); 1565 1565 } 1566 1566 return r; -
libpolys/polys/weight.cc
r71ef94c r281f9f 198 198 } 199 199 200 short * iv2array(intvec * iv, const ring R)201 { 202 short *s=(short *)omAlloc0((rVar(R)+1)*sizeof(short));200 int * iv2array(intvec * iv, const ring R) 201 { 202 int *s=(int *)omAlloc0((rVar(R)+1)*sizeof(int)); 203 203 int len=0; 204 204 if(iv!=NULL) … … 229 229 *with respect to given weights 230 230 */ 231 long totaldegreeWecart_IV(poly p, ring r, const short *w)231 long totaldegreeWecart_IV(poly p, ring r, const int *w) 232 232 { 233 233 int i; -
libpolys/polys/weight.h
r71ef94c r281f9f 19 19 long maxdegreeWecart(poly p,int *l, ring r); 20 20 long totaldegreeWecart(poly p, ring r); 21 long totaldegreeWecart_IV(poly p, ring r, const short *w);21 long totaldegreeWecart_IV(poly p, ring r, const int *w); 22 22 23 short * iv2array(intvec * iv, const ring R);23 int * iv2array(intvec * iv, const ring R); 24 24 25 25 // internal:
Note: See TracChangeset
for help on using the changeset viewer.