Changeset 94312b5 in git


Ignore:
Timestamp:
Mar 17, 2011, 4:03:04 PM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
2ab4af50ab6c7100bb04b9bf33d43dc7ea86a33d
Parents:
2815e8ac192a591e3d2618c320e12f21d3e7a2cd
Message:
bug fix trac ticket #314

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

Legend:

Unmodified
Added
Removed
  • Singular/Minor.cc

    r2815e8 r94312b5  
    601601      /* allocate memory for new entries in _rowKey; */
    602602      _rowKey = new unsigned int[_numberOfRowBlocks];
     603      /* initializing entries to zero */
     604        for (int r = 0; r < _numberOfRowBlocks; r++) _rowKey[r] = 0;
    603605    }
    604606    else
     
    667669              return true). */
    668670
    669   /* The next two variables will finally name a columns which is
     671  /* The next two variables will finally name a column which is
    670672     (1) currently not yet among the columns in this MinorKey, but
    671673     (2) among the columns in mk, and
    672      (3) which is "higher" than the lowest columns in this MinorKey, and
     674     (3) which is "higher" than the lowest column in this MinorKey, and
    673675     (4) which is the lowest possible choice such that (1) - (3) hold.
    674      If we should not be able to find such a columns, then there is no next
     676     If we should not be able to find such a column, then there is no next
    675677     subset of columns. In this case, the method will return false; otherwise
    676678     always true. */
     
    714716  {
    715717    /* Note that the following must hold when reaching this line of code:
    716        (1) The columns with bit newBitToBeSet in
     718       (1) The column with bit newBitToBeSet in
    717719           this->getColumnKey(newBitBlockIndex) is currently not among the
    718720           columns in this MinorKey, but
     
    731733        /* allocate memory for new entries in _columnKey; */
    732734        _columnKey = new unsigned int[_numberOfColumnBlocks];
     735        /* initializing entries to zero */
     736        for (int c = 0; c < _numberOfColumnBlocks; c++) _columnKey[c] = 0;
    733737    }
    734738    else
     
    749753        _columnKey[i] = 0;
    750754    }
    751 
    752755    /* We have now deleted all bits from _columnKey[...] below the bit
    753756       2^newBitToBeSet. In the example we shall have at this point:
     
    788791string MinorKey::toString() const
    789792{
    790   char h[32];
    791   string t = "";
     793  string t;
    792794  string s = "(";
    793795  unsigned int z = 0;
    794796  for (int r = this->getNumberOfRowBlocks() - 1; r >= 0; r--)
    795797  {
     798    t = "";
    796799    z = this->getRowKey(r);
    797800    while (z != 0)
     
    805808  }
    806809  s += ", ";
    807   t = "";
    808810  for (int c = this->getNumberOfColumnBlocks() - 1; c >= 0; c--)
    809811  {
     812    t = "";
    810813    z = this->getColumnKey(c);
    811814    while (z != 0)
Note: See TracChangeset for help on using the changeset viewer.