Changeset 0461f0 in git for libpolys/coeffs/coeffs.h


Ignore:
Timestamp:
Jul 21, 2011, 10:00:44 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
bc1fdba5e0c00a808f45922f0d0fe8c4ec086e88
Parents:
a778e6518804aecf7bb83784c8936b0868f52943
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-07-21 22:00:44+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:53:31+01:00
Message:
ADD: added sainity tests inside modulop
CHG: 'npInt' returns the internal value, now result is in [0,p) and NOT in (-p/2..p/2]!
ADD: Usage of n_Neg: n = n_Neg(n,r) - no copy is returned (TODO: change this?)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/coeffs.h

    ra778e6 r0461f0  
    122122
    123123   /// changes argument  inline: a:= -a
     124   /// return -a! (no copy is returned)
     125   /// the result should be assigned to the original argument: e.g. a = n_Neg(a,r)
    124126   number  (*cfNeg)(number a, const coeffs r);
    125127   /// return 1/a
     
    367369
    368370/// in-place negation of n
     371/// MUST BE USED: n = n_Neg(n) (no copy is returned)
    369372static inline number n_Neg(number n,     const coeffs r)
    370373{ assume(r != NULL); assume(r->cfNeg!=NULL); return r->cfNeg(n,r); }
Note: See TracChangeset for help on using the changeset viewer.