Changeset 109e385 in git
- Timestamp:
- Jul 7, 2015, 11:15:36 AM (8 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- ae0188e380f485df33ffbd07d75eaca52206add7
- Parents:
- 3ffb5ca871047be87892fe8263ef80dbf59f2f04
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kstd1.cc
r3ffb5ca r109e385 743 743 if (H.p==NULL) return NULL; 744 744 } 745 if (p_LmShortDivisibleBy(strat->T[j].GetLmTailRing(), strat->sevT[j], H.GetLmTailRing(), not_sev, strat->tailRing)) 745 #if ADIDEBUG_NF 746 printf("\nSearching for a reducer...\n"); 747 #endif 748 if (p_LmShortDivisibleBy(strat->T[j].GetLmTailRing(), strat->sevT[j], H.GetLmTailRing(), not_sev, strat->tailRing) 749 #ifdef HAVE_RINGS 750 && (!rField_is_Ring(strat->tailRing) || 751 n_DivBy(H.p->coef, strat->T[j].p->coef,strat->tailRing)) 752 #endif 753 ) 746 754 { 747 755 /*- remember the found T-poly -*/ … … 750 758 int li = strat->T[j].length; 751 759 int ii = j; 760 #if ADIDEBUG_NF 761 printf("\nFound: j = %i, ecart = %i\nTrying to find a better one...\n",j,ei);pWrite(strat->T[j].p); 762 #endif 752 763 /* 753 764 * the polynomial to reduce with (up to the moment) is; … … 762 773 if (ei <= H.ecart) break; 763 774 if (((strat->T[j].ecart < ei) 764 || ((strat->T[j].ecart == ei) && (strat->T[j].length < li))) 765 && pLmShortDivisibleBy(strat->T[j].p,strat->sevT[j], H.p, not_sev)) 775 || ((strat->T[j].ecart == ei) 776 && (strat->T[j].length < li))) 777 && pLmShortDivisibleBy(strat->T[j].p,strat->sevT[j], H.p, not_sev) 778 #ifdef HAVE_RINGS 779 && (!rField_is_Ring(strat->tailRing) || 780 n_DivBy(H.p->coef, strat->T[j].p->coef,strat->tailRing)) 781 #endif 782 ) 766 783 { 767 784 /* … … 772 789 li = strat->T[j].length; 773 790 ii = j; 791 #if ADIDEBUG_NF 792 printf("\nFound a better one: j = %i, ecart = %i\nTrying to find a better one...\n",j,ei); 793 pWrite(strat->T[j].p); 794 #endif 774 795 } 775 796 } … … 802 823 return NULL; 803 824 } 825 #if ADIDEBUG_NF 826 printf("\nAfter the small reduction it looks like this:\n");pWrite(H.p); 827 getchar(); 828 #endif 804 829 /*- try to reduce the s-polynomial -*/ 805 830 o = H.SetpFDeg();
Note: See TracChangeset
for help on using the changeset viewer.