Changeset 6d92ca in git for libpolys/polys


Ignore:
Timestamp:
May 18, 2015, 12:10:54 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
f7b7eaca3c9979966d1db33eb6a1f87a4cdcfb2b
Parents:
9b9d9ac6ce20ccef993c21ea7a4dc07160df2f98
Message:
chg: n_write does not call n_Normalize any more
Location:
libpolys/polys/ext_fields
Files:
2 edited

Legend:

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

    r9b9d9a r6d92ca  
    9797void     naPower(number a, int exp, number *b, const coeffs cf);
    9898number   naCopy(number a, const coeffs cf);
    99 void     naWriteLong(number &a, const coeffs cf);
    100 void     naWriteShort(number &a, const coeffs cf);
     99void     naWriteLong(number a, const coeffs cf);
     100void     naWriteShort(number a, const coeffs cf);
    101101number   naGetDenom(number &a, const coeffs cf);
    102102number   naGetNumerator(number &a, const coeffs cf);
     
    582582}
    583583
    584 void naWriteLong(number &a, const coeffs cf)
     584void naWriteLong(number a, const coeffs cf)
    585585{
    586586  naTest(a);
     
    600600}
    601601
    602 void naWriteShort(number &a, const coeffs cf)
     602void naWriteShort(number a, const coeffs cf)
    603603{
    604604  naTest(a);
  • 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.