Changeset 17b0b05 in git for libpolys/polys/monomials


Ignore:
Timestamp:
May 12, 2011, 3:12:45 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
2c41bc0e28c6628127866480994b3041a3c1f0af
Parents:
ea000154f0b80de2f44a961be0d4a407828b72c9
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-12 15:12:45+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:07+01:00
Message:
fix loading of gftables

- fix loading in nfReadTable
- fix feCleanUpFile
- add to feResourceConfigs: %b/../../factory/gftables
- add feStringAppendResources to test of GF polys
Location:
libpolys/polys/monomials
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    rea0001 r17b0b05  
    136136*/
    137137
    138 ring rDefault(coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1)
     138ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1)
    139139{
    140140  assume( cf != NULL);
     
    170170  return rDefault(cf,N,n,ord_size,ord,block0,block1);
    171171}
    172 ring   rDefault(coeffs cf, int N, char **n)
    173 {
    174   assume( cf != NULL);
    175   /*order: lp,0*/
    176   int *order = (int *) omAlloc(2* sizeof(int));
    177   int *block0 = (int *)omAlloc0(2 * sizeof(int));
    178   int *block1 = (int *)omAlloc0(2 * sizeof(int));
    179   /* ringorder dp for the first block: var 1..N */
    180   order[0]  = ringorder_lp;
    181   block0[0] = 1;
    182   block1[0] = N;
    183   /* the last block: everything is 0 */
    184   order[1]  = 0;
    185 
    186   return rDefault(cf,N,n,2,order,block0,block1);
     172ring   rDefault(const coeffs cf, int N, char **n)
     173{
     174  if( cf != NULL)
     175  {
     176    /*order: lp,0*/
     177    int *order = (int *) omAlloc(2* sizeof(int));
     178    int *block0 = (int *)omAlloc0(2 * sizeof(int));
     179    int *block1 = (int *)omAlloc0(2 * sizeof(int));
     180    /* ringorder dp for the first block: var 1..N */
     181    order[0]  = ringorder_lp;
     182    block0[0] = 1;
     183    block1[0] = N;
     184    /* the last block: everything is 0 */
     185    order[1]  = 0;
     186
     187    return rDefault(cf,N,n,2,order,block0,block1);
     188  }
     189  else return NULL;
    187190}
    188191
  • libpolys/polys/monomials/ring.h

    rea0001 r17b0b05  
    335335idhdl  rDefault(const char *s);
    336336ring   rDefault(int ch, int N, char **n);
    337 ring   rDefault(coeffs cf, int N, char **n);
     337ring   rDefault(const coeffs cf, int N, char **n);
    338338ring rDefault(int ch, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
    339 ring rDefault(coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
     339ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1);
    340340
    341341// #define rIsRingVar(A) r_IsRingVar(A,currRing)
Note: See TracChangeset for help on using the changeset viewer.