Changeset 16f8f1 in git for libpolys/coeffs/coeffs.h


Ignore:
Timestamp:
Mar 3, 2011, 2:26:34 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
f47f569bdf07891fa2a30df0f1c5315e6fe1f5d1
Parents:
fb0a6994525982ae391932afdd4d24384a163fda
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-03-03 14:26:34+01:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:01:04+01:00
Message:
ADD: minor changes to coeffs, numbers and tests
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/coeffs.h

    rfb0a699 r16f8f1  
    248248/// in case of an error return NULL
    249249coeffs nInitChar(n_coeffType t, void * parameter);
     250
    250251/// undo all initialisations
    251252void nKillChar(coeffs r);
     253
    252254/// initialisations after each ring change
    253255static inline void nSetChar(const coeffs r)
     
    257259}
    258260
    259 // nach einer heissen Diskussion
    260261void           nNew(number * a);
    261262#define n_New(n, r)           nNew(n)
     
    267268static inline number n_Copy(number n,    const coeffs r)
    268269{ return r->cfCopy(n, r); }
     270
    269271static inline void   n_Delete(number* p, const coeffs r)
    270272{ r->cfDelete(p, r); }
     
    272274static inline BOOLEAN n_Equal(number a, number b, const coeffs r)
    273275{ return r->cfEqual(a, b, r); }
     276
    274277static inline BOOLEAN n_IsZero(number n, const coeffs r)
    275278{ return r->cfIsZero(n,r); }
     279
    276280static inline BOOLEAN n_IsOne(number n,  const coeffs r)
    277281{ return r->cfIsOne(n,r); }
     282
    278283static inline BOOLEAN n_IsMOne(number n, const coeffs r)
    279284{ return r->cfIsMOne(n,r); }
     285
    280286static inline BOOLEAN n_GreaterZero(number n, const coeffs r)
    281287{ return r->cfGreaterZero(n,r); }
    282288// cfGreater?
     289
    283290#ifdef HAVE_RINGS
    284291static inline BOOLEAN n_IsUnit(number n, const coeffs r)
    285292{ return r->cfIsUnit(n,r); }
     293
    286294static inline number n_GetUnit(number n, const coeffs r)
    287295{ return r->cfGetUnit(n,r); }
     296
    288297static inline BOOLEAN n_DivBy(number a, number b, const coeffs r)
    289298{ return r->cfDivBy(a,b,r); }
Note: See TracChangeset for help on using the changeset viewer.