Changeset 6caad65 in git


Ignore:
Timestamp:
Aug 10, 2012, 6:43:54 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
Children:
865b200481936511016703447e348179c16cfe12
Parents:
ab56fc8edb1c11c3240a168051119e14e5bed4a8
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-08-10 18:43:54+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-08-15 19:58:16+02:00
Message:
warnings elimination

chg: uninitialized fake variables
chg: "'const' type qualifier on return type has no effect" for numeric/
chg: more minor warnings elimination
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/bigintmat.cc

    rab56fc r6caad65  
    1414#include <math.h>
    1515#include <string.h>
     16
     17// Ungetestet
     18static void bimRowContent(bigintmat *bimat, int rowpos, int colpos);
     19static void bimReduce(bigintmat *bimat, int rpiv, int colpos,
     20                      int ready, int all);
     21
     22
    1623
    1724//#define BIMATELEM(M,I,J) (M)[ (M).index(I,J) ]
  • libpolys/coeffs/bigintmat.h

    rab56fc r6caad65  
    194194int intArrSum(int * a, int length);
    195195
    196 
    197 // Ungetestet
    198 static void bimRowContent(bigintmat *bimat, int rowpos, int colpos);
    199 static void bimReduce(bigintmat *bimat, int rpiv, int colpos,
    200                       int ready, int all);
    201 
    202196class intvec;
    203197intvec * bim2iv(bigintmat * b);
  • libpolys/polys/monomials/p_polys.h

    rab56fc r6caad65  
    964964  if (rIsPluralRing(r))
    965965  {
    966     int lp, lq;
    967     poly spNoether;
     966    int lp, lq = 0;
     967    poly spNoether = NULL;
    968968    return nc_p_Minus_mm_Mult_qq(p, m, q, lp, lq, spNoether, r);
    969969  }
  • libpolys/polys/monomials/ring.cc

    rab56fc r6caad65  
    32123212
    32133213  /*======== ordering type is (am,_) ==================*/
    3214   if ((order[0]==ringorder_am)
    3215   )
     3214  if (order[0]==ringorder_am)
    32163215  {
    32173216    r->MixedOrder = FALSE;
     
    44074406ring rAssure_SyzComp(const ring r, BOOLEAN complete)
    44084407{
    4409   if ( (r->order[0] == ringorder_s) ) return r;
    4410 
    4411   if ( (r->order[0] == ringorder_IS) )
     4408  if ( r->order[0] == ringorder_s ) return r;
     4409
     4410  if ( r->order[0] == ringorder_IS )
    44124411  {
    44134412#ifndef NDEBUG
  • libpolys/polys/prCopyTemplate.cc

    rab56fc r6caad65  
    3030  p_Test(dest, r_dest);
    3131  return dest;
     32  (void)(r_src);
    3233}
  • numeric/mpr_base.cc

    rab56fc r6caad65  
    7676
    7777  // public interface according to base class resMatrixBase
    78   const ideal getMatrix();
     78  ideal getMatrix();
    7979
    8080  /** Fills in resMat[][] with evpoint[] and gets determinant
     
    8484   *  i= 1 .. numSet0
    8585   */
    86   const number getDetAt( const number* evpoint );
    87 
    88   const poly getUDet( const number* evpoint );
     86  number getDetAt( const number* evpoint );
     87
     88  poly getUDet( const number* evpoint );
    8989
    9090private:
     
    179179
    180180  // pointSet.points[i] equals pointSet[i]
    181   inline const onePointP operator[] ( const int index );
     181  inline onePointP operator[] ( const int index );
    182182
    183183  /** Adds a point to pointSet, copy vert[0,...,dim] ot point[num+1][0,...,dim].
     
    440440}
    441441
    442 inline const onePointP pointSet::operator[] ( const int index_i )
     442inline onePointP pointSet::operator[] ( const int index_i )
    443443{
    444444  assume( index_i > 0 && index_i <= num );
     
    17371737}
    17381738
    1739 const ideal resMatrixSparse::getMatrix()
     1739ideal resMatrixSparse::getMatrix()
    17401740{
    17411741  int i,j,cp;
     
    17981798//    uRPos[i][2..idelem]: col of u(1) .. u(n)
    17991799//    i= 1 .. numSet0
    1800 const number resMatrixSparse::getDetAt( const number* evpoint )
     1800number resMatrixSparse::getDetAt( const number* evpoint )
    18011801{
    18021802  int i,cp;
     
    18581858//    uRPos[i][2..idelem]: col of u(1) .. u(n)
    18591859//    i= 1 .. numSet0
    1860 const poly resMatrixSparse::getUDet( const number* evpoint )
     1860poly resMatrixSparse::getUDet( const number* evpoint )
    18611861{
    18621862  int i,cp;
     
    19471947
    19481948  /** Returns the matrix M in an usable presentation */
    1949   const ideal getMatrix();
     1949  ideal getMatrix();
    19501950
    19511951  /** Returns the submatrix M' of M in an usable presentation */
    1952   const ideal getSubMatrix();
     1952  ideal getSubMatrix();
    19531953
    19541954  /** Evaluate the determinant of the matrix M at the point evpoint
     
    19561956   * Uses singclap_det from factory.
    19571957   */
    1958   const number getDetAt( const number* evpoint );
     1958  number getDetAt( const number* evpoint );
    19591959
    19601960  /** Evaluates the determinant of the submatrix M'.
     
    19621962   * Uses singclap_det from factory.
    19631963   */
    1964   const number getSubDet();
     1964  number getSubDet();
    19651965
    19661966private:
     
    24712471}
    24722472
    2473 const ideal resMatrixDense::getMatrix()
     2473ideal resMatrixDense::getMatrix()
    24742474{
    24752475  int i,j;
     
    25212521}
    25222522
    2523 const ideal resMatrixDense::getSubMatrix()
     2523ideal resMatrixDense::getSubMatrix()
    25242524{
    25252525  int k,i,j,l;
     
    25522552}
    25532553
    2554 const number resMatrixDense::getDetAt( const number* evpoint )
     2554number resMatrixDense::getDetAt( const number* evpoint )
    25552555{
    25562556  int k,i;
     
    25972597}
    25982598
    2599 const number resMatrixDense::getSubDet()
     2599number resMatrixDense::getSubDet()
    26002600{
    26012601  int k,i,j,l;
  • numeric/mpr_base.h

    rab56fc r6caad65  
    2929  virtual ~resMatrixBase() {}
    3030
    31   virtual const ideal getMatrix() { return NULL; }
    32   virtual const ideal getSubMatrix() { return NULL; }
     31  virtual ideal getMatrix() { return NULL; }
     32  virtual ideal getSubMatrix() { return NULL; }
    3333
    34   virtual const poly getUDet( const number* evpoint ) { return NULL; }
     34  virtual poly getUDet( const number* evpoint ) { return NULL; }
    3535
    36   virtual const number getDetAt( const number* evpoint ) { return NULL; }
    37   virtual const number getSubDet() { return NULL; }
     36  virtual number getDetAt( const number* evpoint ) { return NULL; }
     37  virtual number getSubDet() { return NULL; }
    3838
    39   virtual const long getDetDeg() const { return totDeg; }
     39  virtual long getDetDeg() { return totDeg; }
    4040
    41   virtual const IStateType initState() const { return istate; }
     41  virtual IStateType initState() const { return istate; }
    4242
    4343protected:
  • numeric/mpr_numeric.h

    rab56fc r6caad65  
    160160  void arrange();
    161161
    162   const bool success() { return found_roots; }
     162  bool success() { return found_roots; }
    163163
    164164private:
Note: See TracChangeset for help on using the changeset viewer.