source: git/libpolys/coeffs/rintegers.h @ 014b65

Last change on this file since 014b65 was 014b65, checked in by Mohamed Barakat <mohamed.barakat@…>, 12 years ago
- moved misc,reporter,resources,coeffs,polys -> (new) libpolys (Hans agreed) - migrated to automake in coeffs, misc status: everything builds (except polys) todo: . migrate resources and reporter to automake . create autoconf macros for omalloc, factory, and libpolys
  • Property mode set to 100644
File size: 2.3 KB
1#ifndef RINTEGERS_H
2#define RINTEGERS_H
4*  Computer Algebra System SINGULAR     *
6/* $Id$ */
8* ABSTRACT: numbers modulo n
10#ifdef HAVE_RINGS
11#include <coeffs/coeffs.h>
13extern int nrzExp;
14extern NATNUMBER nrzModul;
16BOOLEAN nrzInitChar    (coeffs r,  void * parameter);
17number  nrzCopy        (number a, const coeffs r);
18int     nrzSize        (number a, const coeffs r);
19void    nrzDelete      (number *a, const coeffs r);
20BOOLEAN nrzGreaterZero (number k, const coeffs r);
21number  nrzMult        (number a, number b, const coeffs r);
22number  nrzInit        (int i, const coeffs r);
23int     nrzInt         (number &n, const coeffs r);
24number  nrzAdd         (number a, number b, const coeffs r);
25number  nrzSub         (number a, number b, const coeffs r);
26void    nrzPower       (number a, int i, number * result, const coeffs r);
27BOOLEAN nrzIsZero      (number a, const coeffs r);
28BOOLEAN nrzIsOne       (number a, const coeffs r);
29BOOLEAN nrzIsMOne      (number a, const coeffs r);
30BOOLEAN nrzIsUnit      (number a, const coeffs r);
31number  nrzGetUnit     (number a, const coeffs r);
32number  nrzDiv         (number a, number b, const coeffs r);
33number  nrzIntDiv      (number a, number b, const coeffs r);
34number  nrzIntMod      (number a, number b, const coeffs r);
35number  nrzNeg         (number c, const coeffs r);
36number  nrzInvers      (number c, const coeffs r);
37BOOLEAN nrzGreater     (number a, number b, const coeffs r);
38BOOLEAN nrzDivBy       (number a, number b, const coeffs r);
39int     nrzDivComp     (number a, number b, const coeffs r);
40BOOLEAN nrzEqual       (number a, number b, const coeffs r);
41number  nrzLcm         (number a,number b, const coeffs r);
42number  nrzGcd         (number a,number b, const coeffs r);
43number  nrzExtGcd      (number a, number b, number *s, number *t, const coeffs r);
44nMapFunc nrzSetMap     (const coeffs src, const coeffs dst);
45void    nrzWrite       (number &a, const coeffs r);
46const char *  nrzRead  (const char *s, number *a, const coeffs r);
47char *  nrzName        (number n, const coeffs r);
48#ifdef LDEBUG
49BOOLEAN nrzDBTest      (number a, const char *f, const int l, const coeffs r);
51void    nrzSetExp(int c, coeffs r);
52void    nrzInitExp(int c, coeffs r);
53void    nrzDelete(number *a, const coeffs r);
55number nrzMapQ(number from);
Note: See TracBrowser for help on using the repository browser.