Changeset 1a3437 in git for libpolys/polys/ext_fields
- Timestamp:
- Jun 16, 2014, 2:21:49 PM (10 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 9434d56e8ef4f81efbcce8576989b9e7dba52103
- Parents:
- 754c38259f235b42412a9c3cd9338b6e5151aa8a
- Location:
- libpolys/polys/ext_fields
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/algext.cc
r754c382 r1a3437 699 699 while (xx!=NULL) 700 700 { 701 bt = n_ Gcd(t, pGetCoeff(xx), naRing->cf);701 bt = n_SubringGcd(t, pGetCoeff(xx), naRing->cf); 702 702 rr = n_Mult(t, pGetCoeff(xx), naRing->cf); 703 703 n_Delete(&pGetCoeff(xx),naRing->cf); … … 833 833 { 834 834 pIter(ax); 835 number y = n_ Gcd(x, pGetCoeff(ax), naRing->cf);835 number y = n_SubringGcd(x, pGetCoeff(ax), naRing->cf); 836 836 n_Delete(&x,naRing->cf); 837 837 x = y; … … 841 841 do 842 842 { 843 number y = n_ Gcd(x, pGetCoeff(bx), naRing->cf);843 number y = n_SubringGcd(x, pGetCoeff(bx), naRing->cf); 844 844 n_Delete(&x,naRing->cf); 845 845 x = y; -
libpolys/polys/ext_fields/transext.cc
r754c382 r1a3437 1561 1561 { 1562 1562 pGcd = pa; 1563 p_SetCoeff (pGcd, n _Gcd (pGetCoeff(pGcd), pGetCoeff(pb), ntCoeffs), ntRing);1563 p_SetCoeff (pGcd, nlGcd (pGetCoeff(pGcd), pGetCoeff(pb), ntCoeffs), ntRing); 1564 1564 } 1565 1565 else … … 1571 1571 while (pb != NULL) 1572 1572 { 1573 tmp = n_ Gcd(contentpb, p_GetCoeff(pb, ntRing) , ntCoeffs);1573 tmp = n_SubringGcd(contentpb, p_GetCoeff(pb, ntRing) , ntCoeffs); 1574 1574 n_Delete(&contentpb, ntCoeffs); 1575 1575 contentpb = tmp; … … 1581 1581 while (pa != NULL) 1582 1582 { 1583 tmp = n_ Gcd(contentpa, p_GetCoeff(pa, ntRing), ntCoeffs);1583 tmp = n_SubringGcd(contentpa, p_GetCoeff(pa, ntRing), ntCoeffs); 1584 1584 n_Delete(&contentpa, ntCoeffs); 1585 1585 contentpa = tmp; … … 1587 1587 } 1588 1588 1589 tmp= n_ Gcd (contentpb, contentpa, ntCoeffs);1589 tmp= n_SubringGcd (contentpb, contentpa, ntCoeffs); 1590 1590 n_Delete(&contentpa, ntCoeffs); 1591 1591 n_Delete(&contentpb, ntCoeffs); … … 1650 1650 { 1651 1651 pGcd = pa; 1652 p_SetCoeff (pGcd, n_ Gcd (pGetCoeff(pGcd), pGetCoeff(pb), ntCoeffs), ntRing);1652 p_SetCoeff (pGcd, n_SubringGcd (pGetCoeff(pGcd), pGetCoeff(pb), ntCoeffs), ntRing); 1653 1653 } 1654 1654 else … … 1660 1660 while (pb != NULL) 1661 1661 { 1662 tmp = n_ Gcd(contentpb, p_GetCoeff(pb, ntRing) , ntCoeffs);1662 tmp = n_SubringGcd(contentpb, p_GetCoeff(pb, ntRing) , ntCoeffs); 1663 1663 n_Delete(&contentpb, ntCoeffs); 1664 1664 contentpb = tmp; … … 1670 1670 while (pa != NULL) 1671 1671 { 1672 tmp = n_ Gcd(contentpa, p_GetCoeff(pa, ntRing), ntCoeffs);1672 tmp = n_SubringGcd(contentpa, p_GetCoeff(pa, ntRing), ntCoeffs); 1673 1673 n_Delete(&contentpa, ntCoeffs); 1674 1674 contentpa = tmp; … … 1676 1676 } 1677 1677 1678 tmp= n_ Gcd (contentpb, contentpa, ntCoeffs);1678 tmp= n_SubringGcd (contentpb, contentpa, ntCoeffs); 1679 1679 n_Delete(&contentpa, ntCoeffs); 1680 1680 n_Delete(&contentpb, ntCoeffs); … … 1701 1701 return (number)result; 1702 1702 } 1703 //number ntGcd_dummy(number a, number b, const coeffs cf) 1704 //{ 1705 // extern char my_yylinebuf[80]; 1706 // Print("ntGcd in >>%s<<\n",my_yylinebuf); 1707 // return ntGcd(a,b,cf); 1708 //} 1703 1709 1704 1710 int ntSize(number a, const coeffs cf) … … 2269 2275 if (nCoeff_is_Q (Q)) 2270 2276 { 2271 number LcGcd= n_ Gcd (p_GetCoeff (cand, R), p_GetCoeff(den, R), Q);2277 number LcGcd= n_SubringGcd (p_GetCoeff (cand, R), p_GetCoeff(den, R), Q); 2272 2278 gcd = p_Mult_nn(gcd, LcGcd, R); 2273 2279 n_Delete(&LcGcd,Q); … … 2462 2468 cf->cfDBTest = ntDBTest; 2463 2469 #endif 2464 cf->cfGcd = ntGcd; 2470 //cf->cfGcd = ntGcd_dummy; 2471 cf->cfSubringGcd = ntGcd; 2465 2472 cf->cfLcm = ntLcm; 2466 2473 cf->cfSize = ntSize;
Note: See TracChangeset
for help on using the changeset viewer.