Changeset 760a78f in git


Ignore:
Timestamp:
Apr 28, 2011, 2:50:43 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
Children:
aec5c92fa3e0f853348936026c999351aa972656
Parents:
4c6e42085a4a443ab70a8774732655228f25f63c
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-04-28 14:50:43+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:30+01:00
Message:
less warnings: unused variables, unused debug stuff, const in result
   type, inline without procedure body
Location:
libpolys/polys
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/kbuckets.h

    r4c6e420 r760a78f  
    5252
    5353/////////////////////////////////////////////////////////////////////////////
    54 // Gets leading monom of bucket, does NOT change Bpoly!!!!!
    55 // Returned monom is READ ONLY, i.e. no manipulations are allowed !!!!
    56 //
    57 inline const poly kBucketGetLm(kBucket_pt bucket);
    58 
    59 /////////////////////////////////////////////////////////////////////////////
    6054// Extracts lm of Bpoly, i.e. Bpoly is changed s.t.
    6155// Bpoly == Bpoly - Lm(Bpoly)
     
    204198#endif
    205199
    206 inline const poly kBucketGetLm(kBucket_pt bucket)
     200/////////////////////////////////////////////////////////////////////////////
     201// Gets leading monom of bucket, does NOT change Bpoly!!!!!
     202// Returned monom is READ ONLY, i.e. no manipulations are allowed !!!!
     203//
     204inline poly kBucketGetLm(kBucket_pt bucket)
    207205{
    208206  #ifdef   HAVE_COEF_BUCKETS
  • libpolys/polys/sbuckets.cc

    r4c6e420 r760a78f  
    4848
    4949/// Returns bucket ring
    50 const ring sBucketGetRing(const sBucket_pt bucket)
     50ring sBucketGetRing(const sBucket_pt bucket)
    5151{ return bucket->bucket_ring; }
    5252
  • libpolys/polys/sbuckets.h

    r4c6e420 r760a78f  
    3535
    3636/// Returns bucket ring
    37 const ring sBucketGetRing(const sBucket_pt bucket);
     37ring sBucketGetRing(const sBucket_pt bucket);
    3838
    3939/////////////////////////////////////////////////////////////////////////////
  • libpolys/polys/simpleideals.cc

    r4c6e420 r760a78f  
    370370* copy an ideal
    371371*/
    372 #ifdef PDEBUG
    373 ideal id_DBCopy(ideal h1,const char *f,int l, const ring r)
    374 {
    375   int i;
    376   ideal h2;
    377 
    378   id_DBTest(h1,PDEBUG,f,l,r);
    379 //#ifdef TEST
    380   if (h1 == NULL)
    381   {
    382     h2=idDBInit(1,1,f,l);
    383   }
    384   else
    385 //#endif
    386   {
    387     h2=idDBInit(IDELEMS(h1),h1->rank,f,l);
    388     for (i=IDELEMS(h1)-1; i>=0; i--)
    389       h2->m[i] = p_Copy(h1->m[i],r);
    390   }
    391   return h2;
    392 }
    393 #else
    394372ideal id_Copy(ideal h1, const ring r)
    395373{
     
    411389  return h2;
    412390}
    413 #endif
    414391
    415392#ifdef PDEBUG
  • libpolys/polys/simpleideals.h

    r4c6e420 r760a78f  
    2121  #define MATROWS(i) ((i)->nrows)
    2222  #define MATELEM(mat,i,j) ((mat)->m)[MATCOLS((mat)) * ((i)-1) + (j)-1]
    23    
     23
    2424};
    2525
     
    4949extern omBin sip_sideal_bin;
    5050
    51 #ifdef PDEBUG
    52 ideal idDBInit (int size, int rank, const char *f, int l);
    53 #define idInit(A,B) idDBInit(A,B,__FILE__,__LINE__)
    54 #else
    5551/*- creates an ideal -*/
    5652ideal idInit (int size, int rank=1);
    57 #endif
     53
    5854/*- deletes an ideal -*/
    5955void id_Delete (ideal* h, ring r);
     
    7167#endif
    7268
    73 #ifdef PDEBUG
    74 ideal id_DBCopy(ideal h1,const char *f,int l, const ring r);
    75 #define id_Copy(A,R) id_DBCopy(A,__FILE__,__LINE__,R)
    76 #else
    7769ideal id_Copy (ideal h1,const ring r);
    78 #endif
     70
    7971  /*adds two ideals without simplifying the result*/
    8072ideal id_SimpleAdd (ideal h1,ideal h2, const ring r);
Note: See TracChangeset for help on using the changeset viewer.