source: git/libpolys/coeffs/rintegers.h @ 6ce030f

fieker-DuValspielwiese
Last change on this file since 6ce030f was 6ce030f, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
removal of the $Id$ svn tag from everywhere NOTE: the git SHA1 may be used instead (only on special places) NOTE: the libraries Singular/LIB/*.lib still contain the marker due to our current use of svn
  • Property mode set to 100644
File size: 2.4 KB
Line 
1#ifndef RINTEGERS_H
2#define RINTEGERS_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/*
7* ABSTRACT: numbers modulo n
8*/
9#ifdef HAVE_RINGS
10#include <coeffs/coeffs.h>
11
12extern int nrzExp;
13extern NATNUMBER nrzModul;
14
15BOOLEAN nrzInitChar    (coeffs r,  void * parameter);
16number  nrzCopy        (number a, const coeffs r);
17int     nrzSize        (number a, const coeffs r);
18void    nrzDelete      (number *a, const coeffs r);
19BOOLEAN nrzGreaterZero (number k, const coeffs r);
20number  nrzMult        (number a, number b, const coeffs r);
21number  nrzInit        (long i, const coeffs r);
22int     nrzInt         (number &n, const coeffs r);
23number  nrzAdd         (number a, number b, const coeffs r);
24number  nrzSub         (number a, number b, const coeffs r);
25void    nrzPower       (number a, int i, number * result, const coeffs r);
26BOOLEAN nrzIsZero      (number a, const coeffs r);
27BOOLEAN nrzIsOne       (number a, const coeffs r);
28BOOLEAN nrzIsMOne      (number a, const coeffs r);
29BOOLEAN nrzIsUnit      (number a, const coeffs r);
30number  nrzGetUnit     (number a, const coeffs r);
31number  nrzDiv         (number a, number b, const coeffs r);
32number  nrzIntDiv      (number a, number b, const coeffs r);
33number  nrzIntMod      (number a, number b, const coeffs r);
34number  nrzNeg         (number c, const coeffs r);
35number  nrzInvers      (number c, const coeffs r);
36BOOLEAN nrzGreater     (number a, number b, const coeffs r);
37BOOLEAN nrzDivBy       (number a, number b, const coeffs r);
38int     nrzDivComp     (number a, number b, const coeffs r);
39BOOLEAN nrzEqual       (number a, number b, const coeffs r);
40number  nrzLcm         (number a,number b, const coeffs r);
41number  nrzGcd         (number a,number b, const coeffs r);
42number  nrzExtGcd      (number a, number b, number *s, number *t, const coeffs r);
43nMapFunc nrzSetMap     (const coeffs src, const coeffs dst);
44void    nrzWrite       (number &a, const coeffs r);
45const char *  nrzRead  (const char *s, number *a, const coeffs r);
46char *  nrzName        (number n, const coeffs r);
47void    nrzCoeffWrite  (const coeffs r, BOOLEAN details);
48#ifdef LDEBUG
49BOOLEAN nrzDBTest      (number a, const char *f, const int l, const coeffs r);
50#endif
51void    nrzSetExp(int c, coeffs r);
52void    nrzInitExp(int c, coeffs r);
53void    nrzDelete(number *a, const coeffs r);
54
55number nrzMapQ(number from);
56#endif
57#endif
Note: See TracBrowser for help on using the repository browser.