Changeset 93e7364 in git
- Timestamp:
- Mar 15, 2013, 3:19:20 PM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5e4636810908842f714d87ac378a9aa9c48ec33f
- Parents:
- d8a7daee3419d587cfa035cbf6890deb131d9e5f
- git-author:
- Martin Lee <martinlee84@web.de>2013-03-15 15:19:20+01:00
- git-committer:
- Martin Lee <martinlee84@web.de>2013-03-22 15:52:45+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facFqBivar.cc
rd8a7da r93e7364 7615 7615 } 7616 7616 7617 int minBound= bounds[0]; 7618 for (int i= 1; i < boundsLength; i++) 7619 { 7620 if (bounds[i] != 0) 7621 minBound= tmin (minBound, bounds[i]); 7622 } 7623 7624 int boundsLength2; 7625 int * bounds2= computeBoundsWrtDiffMainvar (A, boundsLength2, isIrreducible); 7626 int minBound2= bounds2[0]; 7627 for (int i= 1; i < boundsLength2; i++) 7628 { 7629 if (bounds2[i] != 0) 7630 minBound2= tmin (minBound2, bounds2[i]); 7631 } 7632 7633 7617 7634 bool fail= false; 7618 7635 CanonicalForm Aeval, evaluation, bufAeval, bufEvaluation, buf, tmp; … … 7681 7698 swap, swap2, N); 7682 7699 normalize (factors); 7700 delete [] bounds; 7701 delete [] bounds2; 7683 7702 return factors; 7684 7703 } … … 7723 7742 if (!extension) 7724 7743 normalize (factors); 7744 delete [] bounds; 7745 delete [] bounds2; 7725 7746 return factors; 7726 7747 } … … 7742 7763 if (!extension) 7743 7764 normalize (factors); 7765 delete [] bounds; 7766 delete [] bounds2; 7744 7767 return factors; 7745 7768 } … … 7760 7783 if (!extension) 7761 7784 normalize (factors); 7785 delete [] bounds; 7786 delete [] bounds2; 7762 7787 return factors; 7763 7788 } … … 7811 7836 if (!derivXZero && !fail2 && !symmetric) 7812 7837 { 7813 if ( uniFactors.length() > uniFactors2.length()||7838 if ((uniFactors.length() > uniFactors2.length() && minBound2 <= minBound)|| 7814 7839 (uniFactors.length() == uniFactors2.length() 7815 && degs.getLength() > degs2.getLength() ))7840 && degs.getLength() > degs2.getLength() && minBound2 <= minBound)) 7816 7841 { 7817 7842 degs= degs2; … … 7837 7862 if (!extension) 7838 7863 normalize (factors); 7864 delete [] bounds; 7865 delete [] bounds2; 7839 7866 return factors; 7840 7867 } … … 7843 7870 7844 7871 if (swap2) 7845 bounds= computeBounds (A, boundsLength, isIrreducible); 7846 7847 int minBound= bounds[0]; 7848 for (int i= 1; i < boundsLength; i++) 7849 { 7850 if (bounds[i] != 0) 7851 minBound= tmin (minBound, bounds[i]); 7872 { 7873 delete [] bounds; 7874 bounds= bounds2; 7875 minBound= minBound2; 7852 7876 } 7853 7877 … … 8044 8068 factors= earlyFactors; 8045 8069 } 8070 8071 if (!swap2) 8072 delete [] bounds2; 8046 8073 delete [] bounds; 8047 8074 if (!extension)
Note: See TracChangeset
for help on using the changeset viewer.