Ignore:
Timestamp:
May 18, 2015, 12:10:54 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f7b7eaca3c9979966d1db33eb6a1f87a4cdcfb2b
Parents:
9b9d9ac6ce20ccef993c21ea7a4dc07160df2f98
Message:
chg: n_write does not call n_Normalize any more
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    r9b9d9a r6d92ca  
    2121*           certain threshold (see constant in the *.h file), then the
    2222*           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.
    2624*           For the special case of K = Q (i.e., when computing over the
    2725*           rationals), this definite cancellation procedure will also take
     
    113111void     ntPower(number a, int exp, number *b, const coeffs cf);
    114112number   ntCopy(number a, const coeffs cf);
    115 void     ntWriteLong(number &a, const coeffs cf);
    116 void     ntWriteShort(number &a, const coeffs cf);
     113void     ntWriteLong(number a, const coeffs cf);
     114void     ntWriteShort(number a, const coeffs cf);
    117115number   ntRePart(number a, const coeffs cf);
    118116number   ntImPart(number a, const coeffs cf);
     
    13911389}
    13921390
    1393 // NOTE: modifies a
    1394 void ntWriteLong(number &a, const coeffs cf)
    1395 {
    1396   ntTest(a);
    1397   definiteGcdCancellation(a, cf, FALSE);
     1391void ntWriteLong(number a, const coeffs cf)
     1392{
     1393  ntTest(a);
    13981394  if (IS0(a))
    13991395    StringAppendS("0");
     
    14181414}
    14191415
    1420 // NOTE: modifies a
    1421 void ntWriteShort(number &a, const coeffs cf)
    1422 {
    1423   ntTest(a);
    1424   definiteGcdCancellation(a, cf, FALSE);
     1416void ntWriteShort(number a, const coeffs cf)
     1417{
     1418  ntTest(a);
    14251419  if (IS0(a))
    14261420    StringAppendS("0");
Note: See TracChangeset for help on using the changeset viewer.