Changeset 94312b5 in git for Singular/Minor.cc
- Timestamp:
- Mar 17, 2011, 4:03:04 PM (12 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 2ab4af50ab6c7100bb04b9bf33d43dc7ea86a33d
- Parents:
- 2815e8ac192a591e3d2618c320e12f21d3e7a2cd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Minor.cc
r2815e8 r94312b5 601 601 /* allocate memory for new entries in _rowKey; */ 602 602 _rowKey = new unsigned int[_numberOfRowBlocks]; 603 /* initializing entries to zero */ 604 for (int r = 0; r < _numberOfRowBlocks; r++) _rowKey[r] = 0; 603 605 } 604 606 else … … 667 669 return true). */ 668 670 669 /* The next two variables will finally name a column swhich is671 /* The next two variables will finally name a column which is 670 672 (1) currently not yet among the columns in this MinorKey, but 671 673 (2) among the columns in mk, and 672 (3) which is "higher" than the lowest column sin this MinorKey, and674 (3) which is "higher" than the lowest column in this MinorKey, and 673 675 (4) which is the lowest possible choice such that (1) - (3) hold. 674 If we should not be able to find such a column s, then there is no next676 If we should not be able to find such a column, then there is no next 675 677 subset of columns. In this case, the method will return false; otherwise 676 678 always true. */ … … 714 716 { 715 717 /* Note that the following must hold when reaching this line of code: 716 (1) The column swith bit newBitToBeSet in718 (1) The column with bit newBitToBeSet in 717 719 this->getColumnKey(newBitBlockIndex) is currently not among the 718 720 columns in this MinorKey, but … … 731 733 /* allocate memory for new entries in _columnKey; */ 732 734 _columnKey = new unsigned int[_numberOfColumnBlocks]; 735 /* initializing entries to zero */ 736 for (int c = 0; c < _numberOfColumnBlocks; c++) _columnKey[c] = 0; 733 737 } 734 738 else … … 749 753 _columnKey[i] = 0; 750 754 } 751 752 755 /* We have now deleted all bits from _columnKey[...] below the bit 753 756 2^newBitToBeSet. In the example we shall have at this point: … … 788 791 string MinorKey::toString() const 789 792 { 790 char h[32]; 791 string t = ""; 793 string t; 792 794 string s = "("; 793 795 unsigned int z = 0; 794 796 for (int r = this->getNumberOfRowBlocks() - 1; r >= 0; r--) 795 797 { 798 t = ""; 796 799 z = this->getRowKey(r); 797 800 while (z != 0) … … 805 808 } 806 809 s += ", "; 807 t = "";808 810 for (int c = this->getNumberOfColumnBlocks() - 1; c >= 0; c--) 809 811 { 812 t = ""; 810 813 z = this->getColumnKey(c); 811 814 while (z != 0)
Note: See TracChangeset
for help on using the changeset viewer.