Changeset 281f9f in git for libpolys


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

configure: Options --with-XXX=DIR should override, not prepend to DEFAULT_CHECKING_PATH
Location:
libpolys
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • libpolys/configure.ac

    r1af8ad r281f9f  
    5454        GMP_HOME_PATH="${DEFAULT_CHECKING_PATH}"
    5555   elif test "$with_gmp" != no ; then
    56         GMP_HOME_PATH="$with_gmp ${DEFAULT_CHECKING_PATH}"
     56        GMP_HOME_PATH="$with_gmp"
    5757    fi
    5858else
  • libpolys/polys/monomials/p_polys.cc

    r71ef94c r281f9f  
    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

    r71ef94c r281f9f  
    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

    r71ef94c r281f9f  
    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

    r71ef94c r281f9f  
    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

    r71ef94c r281f9f  
    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.