Changeset 5f4463 in git for kernel/tgb_internal.h


Ignore:
Timestamp:
Apr 11, 2011, 6:39:34 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
5beac5a8a177a4d4938cbc1e887bbd115a393f3a
Parents:
16733868763266ec04dae72db238bced32663735
Message:
making the sun-c/c++ compiler happy (still waiting for to issues...)



git-svn-id: file:///usr/local/Singular/svn/trunk@14137 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/tgb_internal.h

    r1673386 r5f4463  
    280280  int pTotaldegree_full(poly p)
    281281  {
    282     int r=0;
     282    int rr=0;
    283283    while(p)
    284284    {
    285285      int d=this->pTotaldegree(p);
    286       r=si_max(r,d);
     286      rr=si_max(rr,d);
    287287      pIter(p);
    288288    }
    289     return r;
     289    return rr;
    290290  }
    291291};
     
    378378  int p_len;
    379379  int reducer_deg;
    380   simple_reducer(poly p, int p_len,int reducer_deg, slimgb_alg* c =NULL)
    381   {
    382     this->p=p;
    383     this->reducer_deg=reducer_deg;
    384     assume(p_len==pLength(p));
    385     this->p_len=p_len;
    386     this->c=c;
     380  simple_reducer(poly pp, int pp_len,int pp_reducer_deg, slimgb_alg* pp_c =NULL)
     381  {
     382    this->p=pp;
     383    this->reducer_deg=pp_reducer_deg;
     384    assume(pp_len==pLength(pp));
     385    this->p_len=pp_len;
     386    this->c=pp_c;
    387387  }
    388388  virtual void pre_reduce(red_object* r, int l, int u);
     
    15031503
    15041504  int ncols,nrows;
    1505   ModPMatrixProxyOnArray(number_type* array, int nrows, int ncols){
    1506     this->ncols=ncols;
    1507     this->nrows=nrows;
    1508     rows=(number_type**) omalloc(nrows*sizeof(number_type*));
    1509     startIndices=(int*)omalloc(nrows*sizeof(int));
     1505  ModPMatrixProxyOnArray(number_type* array, int nnrows, int nncols)
     1506  {
     1507    this->ncols=nncols;
     1508    this->nrows=nnrows;
     1509    rows=(number_type**) omalloc(nnrows*sizeof(number_type*));
     1510    startIndices=(int*)omalloc(nnrows*sizeof(int));
    15101511    int i;
    1511     for(i=0;i<nrows;i++)
    1512     {
    1513       rows[i]=array+(i*ncols);
     1512    for(i=0;i<nnrows;i++)
     1513    {
     1514      rows[i]=array+(i*nncols);
    15141515      updateStartIndex(i,-1);
    15151516    }
Note: See TracChangeset for help on using the changeset viewer.