Changeset 6d92ca in git for libpolys/polys/ext_fields/transext.cc
- Timestamp:
- May 18, 2015, 12:10:54 PM (9 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- f7b7eaca3c9979966d1db33eb6a1f87a4cdcfb2b
- Parents:
- 9b9d9ac6ce20ccef993c21ea7a4dc07160df2f98
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.