Changeset 2c41bc in git


Ignore:
Timestamp:
May 12, 2011, 3:19:47 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
9f1a52f982884b8e4dfc19ff4405ba086bd460e2
Parents:
17b0b0589ef61f1aceedb2f51df2a1d7c82454e5
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-12 15:19:47+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:07+01:00
Message:
assume cf!=NULL in rDefault
File:
1 edited

Legend:

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

    r17b0b05 r2c41bc  
    172172ring   rDefault(const coeffs cf, int N, char **n)
    173173{
    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;
     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);
    190187}
    191188
Note: See TracChangeset for help on using the changeset viewer.