Changeset dbb268 in git
- Timestamp:
- Nov 3, 2017, 11:57:29 AM (6 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- cfaf16d7ec0e634d40eb72124b2b9216565e3177
- Parents:
- 2de0cebc393fed2c7b5d269cc711aa13cdcc73a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/transext.cc
r2de0ceb rdbb268 1147 1147 DEN(result) = f; 1148 1148 } 1149 else 1150 { 1151 p_Delete(&f, ntRing); 1152 } 1149 1153 COM(result) = COM(fa) + COM(fb) + MULT_COMPLEXITY; 1150 1154 // definiteGcdCancellation((number)result, cf,FALSE); … … 1726 1730 fraction fb = (fraction)b; 1727 1731 1728 poly pa = p_Copy(NUM(fa), ntRing);1729 poly pb = p_Copy(NUM(fb), ntRing);1730 1732 1731 1733 poly pGcd; 1732 1734 if (nCoeff_is_Q(ntCoeffs)) 1733 1735 { 1736 poly pa = NUM(fa); 1737 poly pb = NUM(fb); 1734 1738 if (p_IsConstant(pa,ntRing) && p_IsConstant(pb,ntRing)) 1735 1739 { 1736 pGcd = p a;1740 pGcd = p_Copy(pa,ntRing); 1737 1741 p_SetCoeff (pGcd, n_SubringGcd (pGetCoeff(pGcd), pGetCoeff(pb), ntCoeffs), ntRing); 1738 1742 } … … 1741 1745 number contentpa, contentpb, tmp; 1742 1746 1743 contentpb= p_GetCoeff(pb, ntRing);1747 contentpb= n_Copy(p_GetCoeff(pb, ntRing),ntCoeffs); 1744 1748 pIter(pb); 1745 1749 while (pb != NULL) … … 1751 1755 } 1752 1756 1753 contentpa= p_GetCoeff(pa, ntRing);1757 contentpa= n_Copy(p_GetCoeff(pa, ntRing),ntCoeffs); 1754 1758 pIter(pa); 1755 1759 while (pa != NULL) … … 1765 1769 n_Delete(&contentpb, ntCoeffs); 1766 1770 contentpa= tmp; 1767 p_Delete(&pb, ntRing);1768 p_Delete(&pa, ntRing);1769 1771 1770 1772 /* singclap_gcd destroys its arguments; we hence need copies: */ … … 1775 1777 } 1776 1778 else 1777 pGcd = singclap_gcd(p a, pb, cf->extRing);1779 pGcd = singclap_gcd(p_Copy(NUM(fa),ntRing), p_Copy(NUM(fb),ntRing), ntRing); 1778 1780 /* Note that, over Q, singclap_gcd will remove the denominators in all 1779 1781 rational coefficients of pa and pb, before starting to compute
Note: See TracChangeset
for help on using the changeset viewer.