Changeset c481b8 in git
- Timestamp:
- Feb 24, 2006, 8:25:34 AM (18 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 9c6d49554ae6de78686962450083ecb4df5d9cd6
- Parents:
- c72471e62710d737a6a64bb0569be9c2fc77b65f
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/tgb.cc
rc72471 rc481b8 5 5 * Computer Algebra System SINGULAR * 6 6 ****************************************/ 7 /* $Id: tgb.cc,v 1.7 0 2006-02-24 06:55:04bricken Exp $ */7 /* $Id: tgb.cc,v 1.71 2006-02-24 07:25:33 bricken Exp $ */ 8 8 /* 9 9 * ABSTRACT: slimgb and F4 implementation … … 1592 1592 return; 1593 1593 } 1594 #ifdef TGB_RESORT_PAIRS 1594 1595 c->replaced=new bool[c->n]; 1595 1596 c->used_b=FALSE; 1596 1597 #endif 1597 1598 red_object* buf=(red_object*) omalloc(i*sizeof(red_object)); 1598 1599 c->normal_forms+=i; … … 1624 1625 #endif 1625 1626 multi_reduction(buf, i, c); 1627 #ifdef TGB_RESORT_PAIRS 1626 1628 if (c->used_b) { 1627 1629 if (TEST_OPT_PROT) … … 1638 1640 qsort(c->apairs,c->pair_top+1,sizeof(sorted_pair_node*),tgb_pair_better_gen2); 1639 1641 } 1642 #endif 1640 1643 #ifdef TGB_DEBUG 1641 1644 { … … 1747 1750 id_Delete(&add2, c->r); 1748 1751 } 1752 #ifdef TGB_RESORT_PAIRS 1749 1753 delete c->replaced; 1750 1754 c->replaced=NULL; 1751 1755 c->used_b=FALSE; 1756 #endif 1752 1757 return; 1753 1758 } … … 2778 2783 if(pos_in_c>=0) 2779 2784 { 2785 #ifdef TGB_RESORT_PAIRS 2780 2786 c->used_b=TRUE; 2781 2787 c->replaced[pos_in_c]=TRUE; 2788 #endif 2782 2789 c->S->m[pos_in_c]=clear_into; 2783 2790 c->lengths[pos_in_c]=new_length; -
kernel/tgb_internal.h
rc72471 rc481b8 5 5 * Computer Algebra System SINGULAR * 6 6 ****************************************/ 7 /* $Id: tgb_internal.h,v 1.2 7 2006-02-24 06:55:05bricken Exp $ */7 /* $Id: tgb_internal.h,v 1.28 2006-02-24 07:25:34 bricken Exp $ */ 8 8 /* 9 9 * ABSTRACT: tgb internal .h file … … 120 120 BOOLEAN* modifiedS; 121 121 #endif 122 #ifdef TGB_RESORT_PAIRS 122 123 bool* replaced; 123 124 #endif 124 125 poly_list_node* to_destroy; 125 126 //for F4 … … 149 150 BOOLEAN F4_mode; 150 151 BOOLEAN nc; 152 #ifdef TGB_RESORT_PAIRS 151 153 BOOLEAN used_b; 154 #endif 152 155 }; 153 156 class red_object{
Note: See TracChangeset
for help on using the changeset viewer.