Changeset bc1fdb in git


Ignore:
Timestamp:
Jul 22, 2011, 6:21:11 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f78059cd3fcf97dca7e3c89d6090636c59cf10d1
Parents:
0461f0957e3e22aad4377388cb89a77d560e0a10
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-07-22 18:21:11+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:53:31+01:00
Message:
CHG: npInt: result is in -p/2..p/2 due to Singular conventions (Hans!)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/modulop.cc

    r0461f0 rbc1fdb  
    7373
    7474
    75 #if 0
    7675/*2
    7776 * convert a number to an int in (-p/2 .. p/2]
    78  * BUG: InConsistent: nInit(nInt(a)) != a, for a in (p/2, p)
    7977 */
    8078int npInt(number &n, const coeffs r)
     
    8583  else                               return (int)((long)n);
    8684}
    87 #else
    88 /*2
    89  * convert a number to an int in [0 .. p)
    90  */
    91 int npInt(number &n, const coeffs r)
    92 {
    93   assume( n_Test(n, r) );
    94  
    95   return (int)(long)n;
    96 }
    97 #endif
    9885
    9986number npAdd (number a, number b, const coeffs r)
Note: See TracChangeset for help on using the changeset viewer.