Changeset a601d5 in git


Ignore:
Timestamp:
Mar 19, 2013, 3:04:41 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '5a0dde71de01068fad5736a17555c993ecbbf495')
Children:
9614bba86831fbfed42ec2f8c377ccc1ec4d9582d4b25e07575f90d19a7fc324664d102ae84e47ad
Parents:
c1ec9a82fe657765b7afd7c7afeff49a89b4dcc0
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-03-19 15:04:41+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-03-19 15:07:37+01:00
Message:
chg: code simplification in walk
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/walk.cc

    rc1ec9a ra601d5  
    18401840  r->cf  = currRing->cf;
    18411841  r->N   = currRing->N;
    1842   int nb = rBlocks(currRing) + 1;//31.10.01 (+1)
     1842  int nb = 4;
    18431843
    18441844  /*names*/
     
    18511851  }
    18521852
    1853   intvec* iva = va;  //why?
    18541853  /*weights: entries for 3 blocks: NULL Made:???*/
    18551854  r->wvhdl = (int **)omAlloc0(nb * sizeof(int_ptr));
    18561855  r->wvhdl[0] = (int*) omAlloc(nv*sizeof(int));
    18571856  for(i=0; i<nv; i++)
    1858     r->wvhdl[0][i] = (*iva)[i];
     1857    r->wvhdl[0][i] = (*va)[i];
    18591858
    18601859  /* order: a,lp,C,0 */
     
    19671966
    19681967  res->cf = currRing->cf; currRing->cf->ref++;
    1969            
     1968
    19701969//   if (currRing->cf->extRing!=NULL)
    19711970//     currRing->cf->extRing->ref++;
    1972 // 
     1971//
    19731972//   if (rParameter (currRing)!=NULL)
    19741973//   {
    19751974//     res->cf->extRing->qideal->m[0]=p_Copy(currRing->cf->extRing->qideal->m[0],currRing->cf->extRing);
    19761975//     int l=rPar(currRing);
    1977 //     
     1976//
    19781977//     res->cf->extRing->names=(char **)omAlloc(l*sizeof(char_ptr));
    1979 // 
     1978//
    19801979//     for(i=l-1;i>=0;i--)
    19811980//       rParameter (res)[i]=omStrDup(rParameter (currRing)[i]);
    19821981//   }
    1983 
    1984   intvec* iva = va;
    19851982
    19861983  /*weights: entries for 3 blocks: NULL Made:???*/
     
    19881985  res->wvhdl[0] = (int*) omAlloc(nv*sizeof(int));
    19891986  for(i=0; i<nv; i++)
    1990     res->wvhdl[0][i] = (*iva)[i];
     1987    res->wvhdl[0][i] = (*va)[i];
    19911988
    19921989  /* order: a,lp,C,0 */
     
    20502047
    20512048  r->cf = currRing->cf; currRing->cf->ref++;
    2052  
     2049
    20532050//   if (currRing->cf->extRing!=NULL)
    20542051//     currRing->cf->extRing->ref++;
    2055 // 
     2052//
    20562053//   if (rParameter (currRing)!=NULL)
    20572054//   {
     
    20592056//     int l=rPar(currRing);
    20602057//     r->cf->extRing->names=(char **)omAlloc(l*sizeof(char_ptr));
    2061 // 
     2058//
    20622059//     for(i=l-1;i>=0;i--)
    20632060//       rParameter(r)[i]=omStrDup(rParameter (currRing)[i]);
     
    21072104//     int l=rPar(currRing);
    21082105//     r->cf->extRing->names=(char **)omAlloc(l*sizeof(char_ptr));
    2109 // 
     2106//
    21102107//     for(i=l-1;i>=0;i--)
    21112108//       rParameter(r)[i]=omStrDup(rParameter(currRing)[i]);
Note: See TracChangeset for help on using the changeset viewer.