Changeset 1af8ad in git


Ignore:
Timestamp:
Mar 25, 2021, 2:21:44 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
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
Message:
Merge pull request #1067 from mkoeppe/doc_set_PERL5LIB

doc/Makefile-docbuild.in: When setting PERLLIB, also set PERL5LIB
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r280aec r1af8ad  
    23322332          /* == now the work starts == */
    23332333
    2334           short * iv=iv2array(v, currRing);
     2334          int * iv=iv2array(v, currRing);
    23352335          poly r=0;
    23362336          poly hp=ppJetW(f,n,iv);
  • Singular/iparith.cc

    r280aec r1af8ad  
    18291829static BOOLEAN jjDEG_M_IV(leftv res, leftv u, leftv v)
    18301830{
    1831   short *iv=iv2array((intvec *)v->Data(),currRing);
     1831  int *iv=iv2array((intvec *)v->Data(),currRing);
    18321832  ideal I=(ideal)u->Data();
    18331833  int d=-1;
    18341834  int i;
    18351835  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) );
    18371837  res->data = (char *)((long)d);
    18381838  return FALSE;
     
    18431843  if (p!=NULL)
    18441844  {
    1845     short *iv=iv2array((intvec *)v->Data(),currRing);
     1845    int *iv=iv2array((intvec *)v->Data(),currRing);
    18461846    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) );
    18481848    res->data = (char *)(d);
    18491849  }
     
    61496149static BOOLEAN jjJET_P_IV(leftv res, leftv u, leftv v, leftv w)
    61506150{
    6151   short *iw=iv2array((intvec *)w->Data(),currRing);
     6151  int *iw=iv2array((intvec *)w->Data(),currRing);
    61526152  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) );
    61546154  return FALSE;
    61556155}
     
    71237123
    71247124  int n=(int)(long)v3->Data();
    7125   short *w=NULL;
     7125  int *w=NULL;
    71267126  if(v4!=NULL)
    71277127  {
    71287128    w = iv2array((intvec *)v4->Data(),currRing);
    7129     short * w0 = w + 1;
     7129    int * w0 = w + 1;
    71307130    int i = currRing->N;
    71317131    while( (i > 0) && ((*w0) > 0) )
     
    71457145  w2.CleanUp();
    71467146  if(w!=NULL)
    7147     omFreeSize( (ADDRESS)w, (rVar(currRing)+1)*sizeof(short) );
     7147    omFreeSize( (ADDRESS)w, (rVar(currRing)+1)*sizeof(int) );
    71487148
    71497149  lists L=(lists) omAllocBin(slists_bin);
  • doc/Makefile-docbuild.in

    rc16bde r1af8ad  
    186186
    187187%_noFun.doc : %.pl pl2doc.pl
    188         export PERLLIB=.;${PL2DOC_M}  -no_fun -o $@  $<
     188        export PERLLIB=. PERL5LIB=.; ${PL2DOC_M}  -no_fun -o $@  $<
    189189
    190190%.doc : %.pl pl2doc.pl
    191         export PERLLIB=.;${PL2DOC} -o $@ $<
     191        export PERLLIB=. PERL5LIB=.; ${PL2DOC} -o $@ $<
    192192
    193193# do not delete intermediate .pl and .doc files
     
    225225html: ${TMP_DIR} ${HTML_SUBDIR}/${HTML_MANUAL_TOP} ${IMAGES_HTML} $(STANDALONE_TEXI_FILES)
    226226${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} \
    228228        -top_file ${HTML_MANUAL_TOP} singular.tex
    229229
  • kernel/ideals.cc

    r280aec r1af8ad  
    13161316*P, Q, and w are not changed
    13171317*/
    1318 void idLiftW(ideal P,ideal Q,int n,matrix &T, ideal &R,short *w)
     1318void idLiftW(ideal P,ideal Q,int n,matrix &T, ideal &R,int *w)
    13191319{
    13201320  long N=0;
  • kernel/ideals.h

    r280aec r1af8ad  
    144144             matrix *unit=NULL, GbVariant a=GbDefault);
    145145
    146 void idLiftW(ideal P,ideal Q,int n,matrix &T, ideal &R, short *w= NULL );
     146void idLiftW(ideal P,ideal Q,int n,matrix &T, ideal &R, int *w= NULL );
    147147
    148148ideal   idQuot (ideal h1,ideal h2,
  • libpolys/polys/monomials/p_polys.cc

    r280aec r1af8ad  
    683683}
    684684
    685 long p_DegW(poly p, const short *w, const ring R)
     685long p_DegW(poly p, const int *w, const ring R)
    686686{
    687687  p_Test(p, R);
     
    44274427}
    44284428
    4429 poly pp_JetW(poly p, int m, short *w, const ring R)
     4429poly pp_JetW(poly p, int m, int *w, const ring R)
    44304430{
    44314431  poly r=NULL;
     
    44544454}
    44554455
    4456 poly p_JetW(poly p, int m, short *w, const ring R)
     4456poly p_JetW(poly p, int m, int *w, const ring R)
    44574457{
    44584458  while((p!=NULL) && (totaldegreeWecart_IV(p,R,w)>m)) p_LmDelete(&p,R);
     
    45014501  if(n==0)
    45024502    return v;
    4503   short *ww=iv2array(w,R);
     4503  int *ww=iv2array(w,R);
    45044504  poly u1=p_JetW(p_Sub(p_One(R),__p_Mult_nn(u,u0,R),R),n,ww,R);
    45054505  if(u1==NULL)
    45064506  {
    4507     omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof(short));
     4507    omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof(int));
    45084508    return v;
    45094509  }
     
    45174517  p_Delete(&u1,R);
    45184518  p_Delete(&v1,R);
    4519   omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof(short));
     4519  omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof(int));
    45204520  return v;
    45214521}
     
    45244524poly p_Series(int n,poly p,poly u, intvec *w, const ring R)
    45254525{
    4526   short *ww=iv2array(w,R);
     4526  int *ww=iv2array(w,R);
    45274527  if(p!=NULL)
    45284528  {
     
    45324532      p=p_JetW(p_Mult_q(p,p_Invers(n-p_MinDeg(p,w,R),u,w,R),R),n,ww,R);
    45334533  }
    4534   omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof(short));
     4534  omFreeSize((ADDRESS)ww,(rVar(R)+1)*sizeof(int));
    45354535  return p;
    45364536}
  • libpolys/polys/monomials/p_polys.h

    r280aec r1af8ad  
    7373int p_MinDeg(poly p,intvec *w, const ring R);
    7474
    75 long p_DegW(poly p, const short *w, const ring R);
     75long p_DegW(poly p, const int *w, const ring R);
    7676
    7777/// return TRUE if all monoms have the same component
     
    20982098poly pp_Jet(poly p, int m, const ring R);
    20992099poly 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);
     2100poly pp_JetW(poly p, int m, int *w, const ring R);
     2101poly p_JetW(poly p, int m, int *w, const ring R);
    21022102
    21032103poly n_PermNumber(const number z, const int *par_perm, const int OldPar, const ring src, const ring dst);
  • libpolys/polys/simpleideals.cc

    r280aec r1af8ad  
    15561556  else
    15571557  {
    1558     short *w=iv2array(iv,R);
     1558    int *w=iv2array(iv,R);
    15591559    int k;
    15601560    for(k=0; k<IDELEMS(i); k++)
     
    15621562      r->m[k]=pp_JetW(i->m[k],d,w,R);
    15631563    }
    1564     omFreeSize((ADDRESS)w,(rVar(R)+1)*sizeof(short));
     1564    omFreeSize((ADDRESS)w,(rVar(R)+1)*sizeof(int));
    15651565  }
    15661566  return r;
  • libpolys/polys/weight.cc

    r280aec r1af8ad  
    198198}
    199199
    200 short * iv2array(intvec * iv, const ring R)
    201 {
    202   short *s=(short *)omAlloc0((rVar(R)+1)*sizeof(short));
     200int * iv2array(intvec * iv, const ring R)
     201{
     202  int *s=(int *)omAlloc0((rVar(R)+1)*sizeof(int));
    203203  int len=0;
    204204  if(iv!=NULL)
     
    229229*with respect to given weights
    230230*/
    231 long totaldegreeWecart_IV(poly p, ring r, const short *w)
     231long totaldegreeWecart_IV(poly p, ring r, const int *w)
    232232{
    233233  int i;
  • libpolys/polys/weight.h

    r280aec r1af8ad  
    1919long maxdegreeWecart(poly p,int *l, ring r);
    2020long totaldegreeWecart(poly p, ring r);
    21 long totaldegreeWecart_IV(poly p, ring r, const short *w);
     21long totaldegreeWecart_IV(poly p, ring r, const int *w);
    2222
    23 short * iv2array(intvec * iv, const ring R);
     23int * iv2array(intvec * iv, const ring R);
    2424
    2525// internal:
Note: See TracChangeset for help on using the changeset viewer.