Changeset 6d92ca in git for libpolys/polys
 Timestamp:
 May 18, 2015, 12:10:54 PM (9 years ago)
 Branches:
 (u'fiekerDuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
 Children:
 f7b7eaca3c9979966d1db33eb6a1f87a4cdcfb2b
 Parents:
 9b9d9ac6ce20ccef993c21ea7a4dc07160df2f98
 Location:
 libpolys/polys/ext_fields
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

libpolys/polys/ext_fields/algext.cc
r9b9d9a r6d92ca 97 97 void naPower(number a, int exp, number *b, const coeffs cf); 98 98 number naCopy(number a, const coeffs cf); 99 void naWriteLong(number &a, const coeffs cf);100 void naWriteShort(number &a, const coeffs cf);99 void naWriteLong(number a, const coeffs cf); 100 void naWriteShort(number a, const coeffs cf); 101 101 number naGetDenom(number &a, const coeffs cf); 102 102 number naGetNumerator(number &a, const coeffs cf); … … 582 582 } 583 583 584 void naWriteLong(number &a, const coeffs cf)584 void naWriteLong(number a, const coeffs cf) 585 585 { 586 586 naTest(a); … … 600 600 } 601 601 602 void naWriteShort(number &a, const coeffs cf)602 void naWriteShort(number a, const coeffs cf) 603 603 { 604 604 naTest(a); 
libpolys/polys/ext_fields/transext.cc
r9b9d9a r6d92ca 21 21 * certain threshold (see constant in the *.h file), then the 22 22 * cancellation heuristic will call 'factory' to compute the gcd 23 * and cancel it out in the given number. (This definite cancel 24 * lation will also be performed at the beginning of ntWrite, 25 * ensuring that any output is free of common factors. 23 * and cancel it out in the given number. 26 24 * For the special case of K = Q (i.e., when computing over the 27 25 * rationals), this definite cancellation procedure will also take … … 113 111 void ntPower(number a, int exp, number *b, const coeffs cf); 114 112 number ntCopy(number a, const coeffs cf); 115 void ntWriteLong(number &a, const coeffs cf);116 void ntWriteShort(number &a, const coeffs cf);113 void ntWriteLong(number a, const coeffs cf); 114 void ntWriteShort(number a, const coeffs cf); 117 115 number ntRePart(number a, const coeffs cf); 118 116 number ntImPart(number a, const coeffs cf); … … 1391 1389 } 1392 1390 1393 // NOTE: modifies a 1394 void ntWriteLong(number &a, const coeffs cf) 1395 { 1396 ntTest(a); 1397 definiteGcdCancellation(a, cf, FALSE); 1391 void ntWriteLong(number a, const coeffs cf) 1392 { 1393 ntTest(a); 1398 1394 if (IS0(a)) 1399 1395 StringAppendS("0"); … … 1418 1414 } 1419 1415 1420 // NOTE: modifies a 1421 void ntWriteShort(number &a, const coeffs cf) 1422 { 1423 ntTest(a); 1424 definiteGcdCancellation(a, cf, FALSE); 1416 void ntWriteShort(number a, const coeffs cf) 1417 { 1418 ntTest(a); 1425 1419 if (IS0(a)) 1426 1420 StringAppendS("0");
Note: See TracChangeset
for help on using the changeset viewer.