Changeset 1af8ad in git
- Timestamp:
- Mar 25, 2021, 2:21:44 PM (3 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- 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
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
r280aec r1af8ad 2332 2332 /* == now the work starts == */ 2333 2333 2334 short * iv=iv2array(v, currRing);2334 int * iv=iv2array(v, currRing); 2335 2335 poly r=0; 2336 2336 poly hp=ppJetW(f,n,iv); -
Singular/iparith.cc
r280aec r1af8ad 1829 1829 static BOOLEAN jjDEG_M_IV(leftv res, leftv u, leftv v) 1830 1830 { 1831 short *iv=iv2array((intvec *)v->Data(),currRing);1831 int *iv=iv2array((intvec *)v->Data(),currRing); 1832 1832 ideal I=(ideal)u->Data(); 1833 1833 int d=-1; 1834 1834 int i; 1835 1835 for(i=IDELEMS(I);i>=0;i--) d=si_max(d,(int)p_DegW(I->m[i],iv,currRing)); 1836 omFreeSize( (ADDRESS)iv, (rVar(currRing)+1)*sizeof( short) );1836 omFreeSize( (ADDRESS)iv, (rVar(currRing)+1)*sizeof(int) ); 1837 1837 res->data = (char *)((long)d); 1838 1838 return FALSE; … … 1843 1843 if (p!=NULL) 1844 1844 { 1845 short *iv=iv2array((intvec *)v->Data(),currRing);1845 int *iv=iv2array((intvec *)v->Data(),currRing); 1846 1846 const long d = p_DegW(p,iv,currRing); 1847 omFreeSize( (ADDRESS)iv, (rVar(currRing)+1)*sizeof( short) );1847 omFreeSize( (ADDRESS)iv, (rVar(currRing)+1)*sizeof(int) ); 1848 1848 res->data = (char *)(d); 1849 1849 } … … 6149 6149 static BOOLEAN jjJET_P_IV(leftv res, leftv u, leftv v, leftv w) 6150 6150 { 6151 short *iw=iv2array((intvec *)w->Data(),currRing);6151 int *iw=iv2array((intvec *)w->Data(),currRing); 6152 6152 res->data = (char *)ppJetW((poly)u->Data(),(int)(long)v->Data(),iw); 6153 omFreeSize( (ADDRESS)iw, (rVar(currRing)+1)*sizeof( short) );6153 omFreeSize( (ADDRESS)iw, (rVar(currRing)+1)*sizeof(int) ); 6154 6154 return FALSE; 6155 6155 } … … 7123 7123 7124 7124 int n=(int)(long)v3->Data(); 7125 short *w=NULL;7125 int *w=NULL; 7126 7126 if(v4!=NULL) 7127 7127 { 7128 7128 w = iv2array((intvec *)v4->Data(),currRing); 7129 short * w0 = w + 1;7129 int * w0 = w + 1; 7130 7130 int i = currRing->N; 7131 7131 while( (i > 0) && ((*w0) > 0) ) … … 7145 7145 w2.CleanUp(); 7146 7146 if(w!=NULL) 7147 omFreeSize( (ADDRESS)w, (rVar(currRing)+1)*sizeof( short) );7147 omFreeSize( (ADDRESS)w, (rVar(currRing)+1)*sizeof(int) ); 7148 7148 7149 7149 lists L=(lists) omAllocBin(slists_bin); -
doc/Makefile-docbuild.in
rc16bde r1af8ad 186 186 187 187 %_noFun.doc : %.pl pl2doc.pl 188 export PERLLIB=. ;${PL2DOC_M} -no_fun -o $@ $<188 export PERLLIB=. PERL5LIB=.; ${PL2DOC_M} -no_fun -o $@ $< 189 189 190 190 %.doc : %.pl pl2doc.pl 191 export PERLLIB=. ;${PL2DOC} -o $@ $<191 export PERLLIB=. PERL5LIB=.; ${PL2DOC} -o $@ $< 192 192 193 193 # do not delete intermediate .pl and .doc files … … 225 225 html: ${TMP_DIR} ${HTML_SUBDIR}/${HTML_MANUAL_TOP} ${IMAGES_HTML} $(STANDALONE_TEXI_FILES) 226 226 ${HTML_SUBDIR}/${HTML_MANUAL_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} singular.tex s-plural.tex s-letterplace.tex 227 export PERLLIB=. ;${PERL} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_MANUAL_PREFIX} \227 export PERLLIB=. PERL5LIB=.;${PERL} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_MANUAL_PREFIX} \ 228 228 -top_file ${HTML_MANUAL_TOP} singular.tex 229 229 -
kernel/ideals.cc
r280aec r1af8ad 1316 1316 *P, Q, and w are not changed 1317 1317 */ 1318 void idLiftW(ideal P,ideal Q,int n,matrix &T, ideal &R, short *w)1318 void idLiftW(ideal P,ideal Q,int n,matrix &T, ideal &R,int *w) 1319 1319 { 1320 1320 long N=0; -
kernel/ideals.h
r280aec r1af8ad 144 144 matrix *unit=NULL, GbVariant a=GbDefault); 145 145 146 void idLiftW(ideal P,ideal Q,int n,matrix &T, ideal &R, short *w= NULL );146 void idLiftW(ideal P,ideal Q,int n,matrix &T, ideal &R, int *w= NULL ); 147 147 148 148 ideal idQuot (ideal h1,ideal h2, -
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 } -
libpolys/polys/monomials/p_polys.h
r280aec r1af8ad 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
r280aec r1af8ad 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
r280aec r1af8ad 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
r280aec r1af8ad 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.